[
https://jira.jboss.org/jira/browse/JBPM-1709?page=com.atlassian.jira.plug...
]
Alejandro Guizar commented on JBPM-1709:
----------------------------------------
Property hibernate.hbm2ddl.auto is not compatible with CMT. Before exporting the generated
schema, Hibernate turns on autocommit on the JDBC connection. Container-managed
connections don't like that. Hence the schema has to be created either (a) by
executing the schema creation script on the database or (b) through a call to
JbpmConfiguration.createSchema() from a user transaction.
After removing the hibernate.hbm2ddl.auto property from the configuration and executing
the schema creation script, all tests in JtaDbPersistenceTest pass.
JtaDbPersistenceService cannot begin Tx
---------------------------------------
Key: JBPM-1709
URL:
https://jira.jboss.org/jira/browse/JBPM-1709
Project: JBoss jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Thomas Diesler
Assignee: Alejandro Guizar
Fix For: jBPM 3.3.0 CR1
org.jbpm.JbpmException: couldn't start JTA transaction
at
org.jbpm.persistence.jta.JtaDbPersistenceService.beginJtaTransaction(JtaDbPersistenceService.java:74)
at
org.jbpm.persistence.jta.JtaDbPersistenceService.<init>(JtaDbPersistenceService.java:47)
at
org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.openService(JtaDbPersistenceServiceFactory.java:63)
at org.jbpm.svc.Services.getService(Services.java:156)
at org.jbpm.svc.Services.getPersistenceService(Services.java:195)
at
org.jbpm.persistence.jta.JtaDbPersistenceTest.isTxCreatedByService(JtaDbPersistenceTest.java:194)
at
org.jbpm.persistence.jta.JtaDbPersistenceTest.deployProcess(JtaDbPersistenceTest.java:79)
at
org.jbpm.persistence.jta.JtaDbPersistenceTest.testServiceTx(JtaDbPersistenceTest.java:59)
at
org.jbpm.persistence.jta.JtaDbPersistenceTest.testUserTx(JtaDbPersistenceTest.java:50)
Caused by: javax.transaction.NotSupportedException
at
com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.begin(BaseTransaction.java:79)
at
com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.begin(BaseTransactionManagerDelegate.java:77)
at
org.jboss.tm.usertx.client.ServerVMClientUserTransaction.begin(ServerVMClientUserTransaction.java:124)
at
org.jbpm.persistence.jta.JtaDbPersistenceService.beginJtaTransaction(JtaDbPersistenceService.java:72)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira