Unable to locate current JTA transaction
crussell42 Jan 29, 2007 6:04 PMWhen I deploy the jbpm-enterprise.ear to jboss 4.0.5ga and try to log into the
jbpm-console web app I am getting the following error.
Unable to locate current JTA transaction
16:56:02,784 ERROR [STDERR] Jan 29, 2007 4:56:02 PM com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View[/main/user/usertasklist.xhtml]
javax.el.ELException: /search/form/formtemplate.xhtml @14,73 session="#{jbpmBean.jbpmContext.session}": org.hibernate.HibernateException: Unable to locate current JTA transaction
at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
at org.jbpm.webapp.tag.jbpm.ui.Search.getSession(Search.java:47)
at org.jbpm.webapp.tag.jbpm.ui.UICriteria.initialize(UICriteria.java:72)
at org.jbpm.webapp.tag.jbpm.ui.UICriteria.initialize(UICriteria.java:134)
at org.jbpm.webapp.tag.jbpm.ui.UICriteria.getSearchBean(UICriteria.java:229)
at org.jbpm.webapp.tag.jbpm.ui.Search.initialize(Search.java:191)
at org.jbpm.webapp.tag.jbpm.ui.Search.encodeBegin(Search.java:92)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:882)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
Here is the pertinent hibernate.cfg.xml part
<!-- JBoss transaction manager lookup (begin) --> <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property> <!-- JBoss transaction manager lookup (end) --> <!-- DataSource properties (begin) --> <property name="hibernate.connection.datasource">java:/DefaultDS</property> <!-- DataSource properties (end) --> <!-- JTA transaction properties (begin) === <property name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property> <property name="jta.UserTransaction">java:comp/UserTransaction</property> ==== JTA transaction properties (end) --> <!-- CMT transaction properties (begin) --> <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property> <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property> <!-- CMT transaction properties (end) -->