-
15. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
marilenc Jan 4, 2007 10:58 AM (in response to mrhightech)It works either this or just explicitly setting a cache provider as hibernate does not defaults to EhCache anymore.
<property name="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</property> <!-- <property name="hibernate.cache.use_second_level_cache">false</property> <property name="hibernate.cache.use_query_cache">false</property> -->
After spending lot of time on this I decided to write all the trials and errors here:
http://www.len.ro/work/articles/jboss/jbpm-hibernate-cache/
Hope it helps,
Len
http://www.len.ro -
16. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
fjfernandez Jun 28, 2007 10:51 AM (in response to mrhightech)Hello everyone,
"ngtdave" wrote:
So, I was having the same problems with 3.1.3 and 5.0.4.GA but wasn't entirely convinced it was not my fault for not copying all the right stuff. So I copied the jbpm folder/directory from the starter kit and placed it alongside my "default" folder/directory in my 5.0.4.GA installation and did a run -c jbpm, and got a different error:07:58:45,274 DEBUG [JbpmService] binding 'org.jbpm.JbpmConfiguration@157b39f' to 'java:/jbpm/JbpmConfiguration' 07:58:45,289 DEBUG [JbpmService] Started jboss.jbpm:name=DefaultJbpm,service=JbpmService 07:58:45,399 WARN [ServiceController] Problem starting service jboss.mq:service=StateManager java.lang.NoSuchMethodError: org.jboss.util.timeout.Timeout.cancel()V at org.jboss.tm.TransactionImpl.cancelTimeout(TransactionImpl.java:1359) at org.jboss.tm.TransactionImpl.completeTransaction(TransactionImpl.java:1179) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:359) at org.jboss.tm.TxManager.commit(TxManager.java:224) at org.jboss.mq.sm.jdbc.JDBCStateManager$JDBCSession.close(JDBCStateManager.java:630) ....
07:59:10,805 INFO [STDOUT] Exception in thread "JbpmCommandExecutor" 07:59:10,821 INFO [STDOUT] java.lang.NoClassDefFoundError: org/dom4j/DocumentException 07:59:10,821 INFO [STDOUT] at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:84) 07:59:10,821 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:68) 07:59:10,821 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90) 07:59:10,836 INFO [STDOUT] at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74) ...
07:59:11,211 ERROR [URLDeploymentScanner] Incomplete Deployment listing: --- MBeans waiting for other MBeans --- ObjectName: jboss.mq:service=StateManager State: FAILED Reason: java.lang.NoSuchMethodError: org.jboss.util.timeout.Timeout.cancel()V I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS Depends On Me: jboss.mq:service=DestinationManager ObjectName: jboss.mq:service=PersistenceManager State: FAILED Reason: java.lang.NoSuchMethodError: org.jboss.util.timeout.Timeout.cancel()V I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS Depends On Me: jboss.mq:service=DestinationManager --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM --- ObjectName: jboss.mq:service=StateManager State: FAILED Reason: java.lang.NoSuchMethodError: org.jboss.util.timeout.Timeout.cancel()V I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS Depends On Me: jboss.mq:service=DestinationManager ObjectName: jboss.mq:service=PersistenceManager State: FAILED Reason: java.lang.NoSuchMethodError: org.jboss.util.timeout.Timeout.cancel()V I Depend On: jboss.jca:service=DataSourceBinding,name=DefaultDS Depends On Me: jboss.mq:service=DestinationManager ...
I have been using jbpm3.1 with the jboss 4.0.3 that i got with the starter-kit and now i have to migrate my applications to a jboss 4.0.5. I have copied the folder jbpm with the configuration that jboss 4.0.3 had into the folder server in jboss4.0.5 and when i start it with 'run.sh -c jbpm' i also get that warning, but i don't know what that warning means and what effects it can have. So, what problems can i have in my applications? Is that configuration correct for jboss4.0.5? What changes should i make to configurate jboss4.0.5?
Thanks in advance and regards -
17. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
ngtdave Jun 28, 2007 12:36 PM (in response to mrhightech)Did you read on to see how I fixed the problem?
-
18. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
contactnagesh Jul 21, 2009 3:39 AM (in response to mrhightech)Hi,
I am trying to setup JBPM on Jboss 4.0.5 . Can you please provide the complete steps setup Jbpm 3.1.3 on Jboss 4.0.5 GA
Thanks,
Nagesh -
19. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
ngtdave Jul 21, 2009 9:26 AM (in response to mrhightech)Okay, first, let me apologize, I said 5.0.4.GA, when I meant 4.0.5.GA. I would have blamed it on my tired fingers, but I did it across 2 posts!
Anyway... in case you didn't read the whole thread, the short short version isThe problem is the dom4j-1.6.1.jar inside jbpm.war. Once that is removed from the war, you get past the hibernate.cfg.xml problem.
-
20. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
kukeltje Jul 21, 2009 11:43 AM (in response to mrhightech)Cool... someone gets notified of a post on a 2 year old topic and responds quickly and with (I hope) the correct info... Kudos
-
21. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
contactnagesh Jul 21, 2009 2:44 PM (in response to mrhightech)Hi Burr,
I am new to JBPM, wanted to setup Jbpm on Jboss 4.0.5. I have followed the below steps.
1. Downloaded latest Jbpm 3.1.2 kit from the net.
2. Extracted the files.
3. get the jbpm.sar and jbpm.war files from the location \jbpm-server\server\jbpm\deploy and moved <jboss-home>\server\default\deploy location.
4. start the server using run.bat
org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1418)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1352)
at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:90)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:68)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
at org.jbpm.persistence.db.DbPersistenceService.getMessagingSession(DbPersistenceService.java:235)
at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:521)
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)
Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1408)
... 14 more
5. Enven i tried to remove the file from jbpm.war dom4j-1.6.1.jar. That gives the same problem for me.
is the above steps which I am following are correct.
Could you help me to setup the Jbpm in Jboss 4.0.5. Please also provide the comlete steps which you are following. -
22. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
ngtdave Jul 21, 2009 3:29 PM (in response to mrhightech)I am not sure my answer has to do with 3.1.2, I was talking about 3.1.3. I have to ask, if you're new to JBPM and just trying to get it working, why not use 3.2.x or even 4.0?
Just a suggestion. -
23. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
contactnagesh Jul 21, 2009 10:23 PM (in response to mrhightech)Hi Burr,
Was the steps which I have followed correct. Is there any other am I missing. I will try with 3.1.3 now.
Thanks,
Nagesh. -
24. Re: Deploying jbpm.war(3.1.3) to jboss as 4.0.5GA
contactnagesh Jul 22, 2009 2:35 AM (in response to mrhightech)
I have downloaded 3.1.3. It works fine now. Below are the steps I have followed.
1. Download Jbpm 3.1.3 complete kit from the location.
http://sourceforge.net/projects/jbpm/files/
2.get <kit 3.1.3> jbpm-server\server\jbpm\deploy jbpm.war and jbpm.sar copy them to Jboss.4.0.5\default\deploy folder.
3. start the server with run.bat
4. Hitting the hibernate configuration error .
org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1418)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1352)
at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:90)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:68)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
at org.jbpm.persistence.db.DbPersistenceService.getMessagingSession(DbPersistenceService.java:235)
at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:521)
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)
Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1408)
... 14 more
5. I have removed the dom4j-1.6.1 from the jbpm.war file and redeployed again.
6. start the server with run.bat.
Now the server started successfully with jbpm examples.
[ Show ]
Nageswara Rao Chilakala added a comment - 22/Jul/09 02:32 AM - Visible to jira-users I have also tried with the Jbpm 3.1.2 . I was hitting the below exception. I have downloaded 3.1.3. It works fine now. Below are the steps I have followed. 1. Download Jbpm 3.1.3 complete kit from the location. http://sourceforge.net/projects/jbpm/files/ 2.get <kit 3.1.3> jbpm-server\server\jbpm\deploy jbpm.war and jbpm.sar copy them to Jboss.4.0.5\default\deploy folder. 3. start the server with run.bat 4. Hitting the hibernate configuration error . org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1418) at org.hibernate.cfg.Configuration.configure(Configuration.java:1352) at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:90) at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:68) at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90) at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74) at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78) at org.jbpm.persistence.db.DbPersistenceService.getMessagingSession(DbPersistenceService.java:235) at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:521) 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) Caused by: org.dom4j.DocumentException: org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1408) ... 14 more 5. I have removed the dom4j-1.6.1 from the jbpm.war file and redeployed again.
6. start the server with run.bat. Now the server started successfully with jbpm examples.
Please contact me if you have any deployment issues with Jbpm 3.1.3 and Jboss 4.0.5