[jBPM Development] - The deployment location of the Archive
by Sameer Tiwari
Sameer Tiwari [http://community.jboss.org/people/sameerlt1983] created the discussion
"The deployment location of the Archive"
To view the discussion, visit: http://community.jboss.org/message/539062#539062
--------------------------------------------------------------
Hi,
I have used the jbpm-jpdl-3.2.3 version and when i create a process project and deploy it deploys successfully. But when i try to change the state from the Jboss-console it gives me an error which is as mentioned below:
8:28:01,921 ERROR [[GDP Deployer Servlet]] Servlet.service() for servlet GDP Deployer Servlet threw exception
rg.jbpm.jpdl.JpdlException: [[ERROR] line 25: cvc-complex-type.2.4.a: Invalid content was found starting with element 'transition'. One of '{" http://jbpm.org/3/jpdl http://jbpm.org/3/jpdl":event, " http://jbpm.org/3/jpdl http://jbpm.org/3/jpdl":timer, " http://jbpm.org/3/jpdl http://jbpm.org/3/jpdl":exception-handler}' is expected.]
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:178)
at org.jbpm.jpdl.par.JpdlArchiveParser.readFromArchive(JpdlArchiveParser.java:51)
at org.jbpm.jpdl.par.ProcessArchive.parseProcessDefinition(ProcessArchive.java:81)
at org.jbpm.graph.def.ProcessDefinition.parseParZipInputStream(ProcessDefinition.java:197)
at org.jbpm.web.ProcessUploadServlet.handleRequest(ProcessUploadServlet.java:91)
at org.jbpm.web.ProcessUploadServlet.service(ProcessUploadServlet.java:58)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
8:34:59,781 ERROR [Delegation] couldn't load delegation class 'com.sample.decision.Verifyorder'
ava.lang.ClassNotFoundException: class 'com.sample.decision.Verifyorder' could not be found by the process classloader
at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:118)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
at org.jbpm.instantiation.Delegation_$$_javassist_11.instantiate(Delegation_$$_javassist_11.java)
at org.jbpm.graph.node.Decision.execute(Decision.java:87)
at org.jbpm.graph.def.Node.enter(Node.java:318)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
I am attaching my par file with this. also i have the in this i have used few handler class. basically its the example that i am trying to execute from the link:
http://www.mastertheboss.com/en/jbpm/51-jbpm-tutorial-part-1.html http://www.mastertheboss.com/en/jbpm/51-jbpm-tutorial-part-1.html
*
*
*I have annother question where does the deployment happen, where can i see the deployed class or archive.*
Thanks
Sameer
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539062#539062]
Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-dev-forums] [JBoss Microcontainer Development] - JBoss Reflect Performance Javassist vs Introspection
by Andrew Rubinger
Andrew Rubinger [http://community.jboss.org/people/ALRubinger] replied to the discussion
"JBoss Reflect Performance Javassist vs Introspection"
To view the discussion, visit: http://community.jboss.org/message/539057#539057
--------------------------------------------------------------
ie:
/**
* {@link LifecycleEventHandler} implementation to set the jboss-reflect
* {@link RepositoryClassPoolFactory}. Must be called before MC is brought up.
*
* @author <a href="mailto:andrew.rubinger@jboss.org">ALR</a>
*/
public enum SetClassPoolLifecycleEventHandler implements LifecycleEventHandler {
INSTANCE;
//-------------------------------------------------------------------------------------||
// Class Members ----------------------------------------------------------------------||
//-------------------------------------------------------------------------------------||
/**
* Logger
*/
private static final Logger log = Logger.getLogger(SetClassPoolLifecycleEventHandler.class);
//-------------------------------------------------------------------------------------||
// Required Implementations -----------------------------------------------------------||
//-------------------------------------------------------------------------------------||
/**
* {@inheritDoc}
* @see org.jboss.bootstrap.api.lifecycle.LifecycleEventHandler#handleEvent(org.jboss.bootstrap.api.lifecycle.LifecycleState)
*/
@Override
public void handleEvent(final LifecycleState state) throws LifecycleEventException
{
/*
* Make sure we have the correct classpool
*/
final RepositoryClassPoolFactory factory = new RepositoryClassPoolFactory(ClassPoolRepository.getInstance());
JavassistTypeInfoFactoryImpl.setPoolFactory(factory);
if (log.isTraceEnabled())
{
log.tracef("Set %s pool factory to %s", JavassistTypeInfoFactoryImpl.class.getSimpleName(), factory);
}
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/539057#539057]
Start a new discussion in JBoss Microcontainer Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months
Re: [jboss-dev-forums] [jBPM Development PVM] - Problem with deployment of process design
by Sukla Nag
Sukla Nag [http://community.jboss.org/people/SuklaJbpm] replied to the discussion
"Problem with deployment of process design"
To view the discussion, visit: http://community.jboss.org/message/538989#538989
--------------------------------------------------------------
Hi Huisheng
Thanks a lot for the reply. You are right that I have used jbpm-installer-3.2.6.SP1 installer for installing all war files in the jboss4.2.2 & in eclipse platform I have pointed the JBOSS JBPM run time version to the directory of inzipped file of jbpm-4.3.zip. So it may be creating deployment problem. I have also tried this way - I ctreated an archive file for deplyment from the deplyment menu of gpd.xml & have tried to upload it from the process deployment of the jbpm-console menu. I got the error
Error deploying process: An exception of type "org.hibernate.exception.SQLGrammarException" was thrown. The message is: could not retrieve generated id after insert: [org.jbpm.graph.def.ProcessDefinition]
But when I tried to point the Jbpm3.2.6 directory to the run time version of JBOSS JBPM in eclipse, it did not accept saying not valid BPM installation.
Could you please tell me the exact installation procedure by which I can run the jbpm-console web application & can upload the process definition file (archived) created by process designer in eclipse environment ( or some other environment) using *some* eclipse plug in or whatever required in other environment ( may be stand alone).
I would appreciate very much if you kindly let me know.
Thanks once again.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/538989#538989]
Start a new discussion in jBPM Development PVM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 11 months