-
1. Re: Database connection
j.e.z Nov 13, 2006 11:34 AM (in response to j.e.z)Hi again,
after some tests i discovered the true reason of the problem, but not a solution for it. If anybody know why it happens, tell me please:Exception in thread "JbpmCommandExecutor" java.lang.NoClassDefFoundError: org/hibernate/Session at org.jbpm.persistence.db.DbPersistenceServiceFactory.openService(DbPersistenceServiceFactory.java:55) 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:594) at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:519) at org.jbpm.msg.db.DbMessageService.<init>(DbMessageService.java:49) at org.jbpm.msg.db.DbMessageServiceFactory.openService(DbMessageServiceFactory.java:32) at org.jbpm.svc.Services.getService(Services.java:136) at org.jbpm.svc.Services.getMessageService(Services.java:172) at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:112) at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79)
Thanks for help.
Regards,
Jeferson Zanim -
2. Re: Database connection
cocampo Nov 13, 2006 11:53 AM (in response to j.e.z)It looks like you're missing the Hibernate JAR's in your JBoss AS.
Regards. -
3. Re: Database connection
cocampo Nov 13, 2006 11:55 AM (in response to j.e.z)If you have read the docs, then you should be aware that jBPM uses Hibernate to handle DB, hence the jars needed.
Regards. -
4. Re: Database connection
j.e.z Nov 13, 2006 12:21 PM (in response to j.e.z)Hi one more time,
the last problem was a mistake with 'jbpm.cfg.xml' location. But, after solve it i got a new exception:org.jbpm.JbpmException: couldn't parse jbpm configuration from resource 'jbpm.cfg.xml' at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:284) at ... at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) Caused by: org.jbpm.JbpmException: no ObjectInfo class specified for element 'service' at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:280) ... 28 more
Any idea of how can i solve it?
Thank you again.
Regards,
Jeferson Zanim -
5. Re: Database connection
j.e.z Nov 13, 2006 12:23 PM (in response to j.e.z)Additional comments:
I'm using Tomcat 5, MySQL 5 and jBPM 3.1.2
Regards,
Jeferson Zanim -
6. Re: Database connection
cocampo Nov 13, 2006 1:58 PM (in response to j.e.z)"J.E.Z" wrote:
Hi,
im a begginer at using jBPM. I copied the jbpm.war from the Starters Kit to my Tomcat/webapps.
Look at this: http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74781.
According to this, you need to deploy the jbpm.sar, not the jbpm.war; follow the instructions in the thread above to build the jbpm.sar connecting to your new DB.
Hope this helps. -
7. after some tests i discovered the true reason of the problem
shaowenchang Aug 21, 2009 4:42 AM (in response to j.e.z)Exception in thread "JbpmCommandExecutor" java.lang.NoClassDefFoundError: org/hibernate/Session
at org.jbpm.persistence.db.DbPersistenceServiceFactory.openService(DbPersistenceServiceFactory.java:55)
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:594)
at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:519)
at org.jbpm.msg.db.DbMessageService.(DbMessageService.java:49)
at org.jbpm.msg.db.DbMessageServiceFactory.openService(DbMessageServiceFactory.java:32)
at org.jbpm.svc.Services.getService(Services.java:136)
at org.jbpm.svc.Services.getMessageService(Services.java:172)
at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:112)
at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79) -