-
1. Re: Table JBPM_PROCESSDEFINITION
aguizar Aug 23, 2005 12:25 PM (in response to ivannoboa)I'm a bit confused. Do the first two lines of your code create the tables? If they are enabled, you get the second error, otherwise you get the first?
-
2. Re: Table JBPM_PROCESSDEFINITION
ivannoboa Aug 23, 2005 12:28 PM (in response to ivannoboa)Your assumption is correct Alex, if the lines that create the table are enabled I get
You cannot commit during a managed transaction! (java.lang.Exception)
, if are not enabled I getTable not found: JBPM_PROCESSDEFINITION
Thanks for your help, this is drivin' me mad. -
3. Re: Table JBPM_PROCESSDEFINITION
aguizar Aug 23, 2005 1:08 PM (in response to ivannoboa)You are using container-managed transactions, right? Then you need to adjust your hibernate.properties as described in section 12.2 of the Hibernate reference manual: http://www.hibernate.org/hib_docs/v3/reference/en/html/
In particular, make the following adjustments:hibernate.transaction.factory_class=org.hibernate.transaction.CMTTransactionFactory hibernate.transaction.manager_lookup_class=org.hibernate.transaction.JBossTransactionManagerLookup
Substitute the second entry by the class appropiate to your app server. -
4. Re: Table JBPM_PROCESSDEFINITION
ivannoboa Aug 23, 2005 2:38 PM (in response to ivannoboa)I've done all the changes, but now I'm getting this
Already marked for rollback TransactionImpl:XidImpl[FormatId=257, GlobalId=XXXXXA/22, BranchQual=, localId=22] (java.lang.Exception) -
5. Re: Table JBPM_PROCESSDEFINITION
aguizar Aug 24, 2005 2:53 PM (in response to ivannoboa)This is now a Hibernate/JTA problem. Did you configure Hibernate to obtain connections from an DataSource registered in JNDI instead of local JDBC (DriverManager) ? See section 4.3 of the Hibernate manual for more info.
-
6. Re: Table JBPM_PROCESSDEFINITION
ivannoboa Aug 24, 2005 5:46 PM (in response to ivannoboa)Thanks Ales, your las tip was very useful, I've solved this configuring the connections