[jboss-user] [JBoss jBPM] - JTA Transactional Issues with Weblogic

CatlinIT do-not-reply at jboss.com
Thu Apr 26 11:26:31 EDT 2007


When querying JBPM objects from an application deployed in Weblogic we get the following exception:

org.hibernate.HibernateException: Unable to locate current JTA transaction
at org.hibernate.context.JTASessionContext.currentSession()Lorg.hibernate.classic.Session;(J
TASessionContext.java:61)        at org.hibernate.impl.SessionFactoryImpl.getCurrentSession()Lorg.hibernate.classic.Session;(
SessionFactoryImpl.java:542)        at org.jbpm.persistence.db.DbPersistenceService.getSession()Lorg.hibernate.Session;(DbPersis
tenceService.java:103)        at org.jbpm.JbpmContext.getSession()Lorg.hibernate.Session;(JbpmContext.java:506)       at com.catlin.workflow.engine.jbpm.JbpmWorkflowEngine.findTasks(Lcom.catlin.workflow.engine.
search.WorkflowSearchCriteria;)Ljava.util.List;(JbpmWorkflowEngine.java:96) at com.catlin.workflow.search.impl.FindIncompleteTasksByUser.search(Ljava.util.Map;)Ljava.ut
il.Collection;(FindIncompleteTasksByUser.java:37)     at com.catlin.ui.workflow.WorkflowDelegate.searchOutstandingTasksByUser(Ljava.lang.String;)L
java.util.Collection;(WorkflowDelegate.java:24) at com.catlin.ui.home.NewSplashAction.initUserTasks(Lcom.catlin.ui.home.NewSplashForm;)V(New
SplashAction.java:69)

Here are our settings from our hibernate config:

hibernate.connection.datasource = SWANBusJTSSource	
hibernate.current_session_context_class = jta
hibernate.transaction.factory_class = org.hibernate.transaction.JTATransactionFactory
jta.userTransaction = javax.transaction.UserTransaction
hibernate.transaction.manager_lookup_class = org.hibernate.transaction.WeblogicTransactionManagerLookup

....and from our jbpm config

bean class = org.jbpm.persistence.db.DbPersistenceServiceFactory
isTransactionEnabled = false
isCurrentSessionEnabled = true
dataSourceJndiName = SWANBusJTSSource

Thanks in advance

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041054#4041054

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041054



More information about the jboss-user mailing list