[JBoss jBPM] - couldn't find process definition ERROR
by zhangcht
I add JBPM to Hibernate ,spring and struts, but there is something wrong when I want to get the processdefinition from the database. the processdefinition has been deploied to the database.
anybody help me???
CODE:
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
|
| GraphSession graphSession = jbpmContext.getGraphSession();
|
| ProcessDefinition processDefinition = graphSession.findLatestProcessDefinition("hello");
| ProcessInstance instance = processDefinition.createProcessInstance();
| instance.signal();
| jbpmContext.save(instance);
|
| jbpmContext.close();
ERROE
javax.servlet.ServletException: couldn't find process definition 'hello'
| org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)
| org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)
| org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
| org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
| org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
|
|
| root cause
|
| org.jbpm.JbpmException: couldn't find process definition 'hello'
| org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:157)
| com.ImportBusiness.struts.action.LoginAction.execute(LoginAction.java:102)
| org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:106)
| org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
| org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
| org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
| org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
| javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215241#4215241
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215241
17 years, 1 month
[JBoss jBPM] - 3.2.1 Datasource Change
by robro99
I have tried to search, but just cannot seem to find a good answer on this. I apologize as I am a complete noob when it comes to JBOSS. I followed this http://www.jboss.org/community/docs/DOC-11142 and used jbpm-jpdl-suite-3.2.1.zip to get jBPM going. I can start it up and run through the websale example. Now I need to change the backend database.
I think my major problem is that the user guide talks about files that do not exist (at least not in suite-3.2.1). I have been trying to follow this http://docs.jboss.org/jbpm/v3/userguide/thejbpmdatabase.html#d0e2465..
I have a new datasource "mssql-ds.xml" in my C:\jbpm-jpdl-3.2.1\server\server\jbpm\deploy directory. I tested this with a simple JSP and it seems to work. It is named <jndi-name>MSSQLDS</jndi-name>.
The problem I am running into is that the user guide suggests modifying jboss-service.xml which it says is found in
${JBPM_SDK_HOME}/jbpm-server/server/jbpm/deploy/jbpm.sar/META-INF
I do NOT have a jbpm.sar. Is there something equivalent for 3.2.1?
After that step it suggests modifying hibernate.cfg.xml, which it says should be found in jbpm.sar.cfg.jar, which I do not have. :(
If anyone could tell me what file(s) in 3.2.1 I need to modify to change from the default datasource to my new datasource I would be very greatful.
-Rob the confused
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215041#4215041
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215041
17 years, 1 month
[JBoss jBPM] - async execution
by armita
I am trying to execute some of my nodes with built in async approach. I get the messages in the JBPM_JOB table, but nothing happens after this point. The record are just sits in the table forever.
The application is a webbased application running on Tomcat and my jbpm configuration file looks like:
| <jbpm-configuration>
|
| <jbpm-context>
| <service name='persistence' factory='org.jbpm.persistence.db.DbPersistenceServiceFactory' />
| <service name='message' factory='org.jbpm.msg.db.DbMessageServiceFactory' />
| <service name='scheduler' factory='org.jbpm.scheduler.db.DbSchedulerServiceFactory' />
| <service name='logging' factory='org.jbpm.logging.db.DbLoggingServiceFactory' />
| <service name='authentication' factory='org.jbpm.security.authentication.DefaultAuthenticationServiceFactory' />
| <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
| </jbpm-context>
|
| <!-- configuration resource files pointing to default configuration files in jbpm-{version}.jar -->
| <string name='resource.hibernate.cfg.xml' value='hibernate.cfg.xml' />
|
| <!-- <string name='resource.hibernate.properties' value='hibernate.properties' /> -->
| <string name='resource.business.calendar' value='org/jbpm/calendar/jbpm.business.calendar.properties' />
| <string name='resource.default.modules' value='org/jbpm/graph/def/jbpm.default.modules.properties' />
| <string name='resource.converter' value='org/jbpm/db/hibernate/jbpm.converter.properties' />
| <string name='resource.action.types' value='org/jbpm/graph/action/action.types.xml' />
| <string name='resource.node.types' value='org/jbpm/graph/node/node.types.xml' />
| <string name='resource.parsers' value='org/jbpm/jpdl/par/jbpm.parsers.xml' />
| <string name='resource.varmapping' value='org/jbpm/context/exe/jbpm.varmapping.xml' />
| <string name='resource.mail.templates' value='jbpm.mail.templates.xml' />
|
| <int name='jbpm.byte.block.size' value="1024" singleton="true" />
| <bean name='jbpm.task.instance.factory' class='org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl' singleton='true' />
| <bean name='jbpm.variable.resolver' class='org.jbpm.jpdl.el.impl.JbpmVariableResolver' singleton='true' />
| <string name='jbpm.mail.smtp.host' value='localhost' />
| <bean name='jbpm.mail.address.resolver' class='org.jbpm.identity.mail.IdentityAddressResolver' singleton='true' />
| <string name='jbpm.mail.from.address' value='jbpm@noreply' />
|
| <bean name='jbpm.job.executor' class='org.jbpm.job.executor.JobExecutor'>
| <field name='jbpmConfiguration'><ref bean='jbpmConfiguration' /></field>
| <field name='name'><string value='JbpmJobExecutor' /></field>
| <field name='nbrOfThreads'><int value='1' /></field>
| <field name='idleInterval'><int value='5000' /></field>
| <field name='maxIdleInterval'><int value='3600000' /></field> <!-- 1 hour -->
| <field name='historyMaxSize'><int value='20' /></field>
| <field name='maxLockTime'><int value='600000' /></field> <!-- 10 minutes -->
| <field name='lockMonitorInterval'><int value='60000' /></field> <!-- 1 minute -->
| <field name='lockBufferTime'><int value='5000' /></field> <!-- 5 seconds -->
| </bean>
|
| </jbpm-configuration>
What do I miss ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4214996#4214996
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4214996
17 years, 1 month