-
1. Re: How to get Pocess from server
sidkennedy Nov 5, 2007 8:16 AM (in response to sidkennedy)or in another way the question is: How can I connect to a JBoss-server(working with a mysql-DB) to get a process?
-
2. Re: How to get Pocess from server
sidkennedy Nov 5, 2007 9:18 AM (in response to sidkennedy)meanwhile I found out that I can connect and get the ProcessDefinitions stored in the DB like this:
JbpmConfiguration config = JbpmConfiguration.getInstance(); JbpmContext context = config.createJbpmContext(); List processes = context.getGraphSession().findLatestProcessDefinitions();
but in the third line an exception is thrown.
java.lang.NoClassDefFoundError: org/hibernate/Session
at org.jbpm.persistence.db.DbPersistenceServiceFactory.openService(DbPersistenceServiceFactory.java:56)
at org.jbpm.svc.Services.getService(Services.java:136)
at org.jbpm.svc.Services.getPersistenceService(Services.java:175)
at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:596)
at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:537)
....
what does that mean? -
3. Re: How to get Pocess from server
dleerob Nov 6, 2007 2:41 AM (in response to sidkennedy)Means it cannot find the class org/hibernate/Session .
Looks like you haven't got the required hibernate jar files in your classpath. -
4. Re: How to get Pocess from server
sidkennedy Nov 6, 2007 2:54 PM (in response to sidkennedy)meanwhile I discovered that the code above is only possible if that class was deployed to the JBoss AS. But I want to get a ProcessDefinition/Instance from outside the AS. How can I do this? With EJB? Or is there an easier way?
-
5. Re: How to get Pocess from server
dleerob Nov 8, 2007 4:28 AM (in response to sidkennedy)As I said, check your jars. You can run that code outside JBoss AS. I run the same code in Tomcat. You can run it anywhere, as long as you have setup your classpath/libraries correctly.
Look at the deployment section in the documentation. Make sure you are referencing all relevant jar files.