-
1. Re: JTA issue when starting a process from another thread
ctkcin Nov 18, 2013 6:05 AM (in response to garethed)Hi,
Getting same error. Did you get any solution?
Thanks
-
2. Re: JTA issue when starting a process from another thread
swiderski.maciej Nov 19, 2013 1:37 AM (in response to garethed)first try with specifying the jndi name of transaction manager via system property:
-Djbpm.tm.jndi.lookup=java:jboss/TransactionManager
if that won't help you can look up transaction manager yourself and add it to Environment instance before creating ksession.
HTH
-
3. Re: JTA issue when starting a process from another thread
ctkcin Nov 19, 2013 4:34 AM (in response to swiderski.maciej)Hi Maciej,
Got the solution. It has been fixed in latest version of JtaTransactionManager. I took class file and patched in drools-persistence-jpa-5.5.0.Final.jar.
findUserTransaction() method is updated with fix.
Thanks.
-
4. Re: JTA issue when starting a process from another thread
lauradp Dec 19, 2013 5:55 AM (in response to ctkcin)I had a similar issue and your solution (I tookJtaTransactionManager from version 6.0) works fine!
Thanks
Laura
-
5. Re: JTA issue when starting a process from another thread
buenavida Mar 17, 2014 9:39 AM (in response to lauradp)I want to use JBPM in a tomcat server. The transaction type of the persistence is defined as RESOURCE_LOCAL.
<persistence-unit name="org.jbpm.domain" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
I am using jbpm 6.0.1 and I have got a similar error. Is this a problem of version 6.0.1? What I am doing wrong?
Caused by: java.lang.IllegalStateException: Unable to find transaction: Name java:comp is not bound in this Context
at org.drools.persistence.jta.JtaTransactionManager.findUserTransaction(JtaTransactionManager.java:140)
at org.drools.persistence.jta.JtaTransactionManager.<init>(JtaTransactionManager.java:79)
at org.drools.persistence.SingleSessionCommandService.initTransactionManager(SingleSessionCommandService.java:320)
at org.drools.persistence.SingleSessionCommandService.<init>(SingleSessionCommandService.java:112)
... 103 more
Caused by: javax.naming.NameNotFoundException: Name java:comp is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:804)
at org.apache.naming.NamingContext.lookup(NamingContext.java:168)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at org.drools.persistence.jta.JtaTransactionManager.findUserTransaction(JtaTransactionManager.java:132)