[JBoss jBPM] - Unable to locate current JTA transaction
by crussell42
When 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) -->
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008053#4008053
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008053
19 years, 2 months
[JBoss Seam] - Problems with injection of persistence context.
by adamkoprowski
Hello,
I'm running into problems with injection for persistence context. If in a session bean I do:
@PersistenceContext private EntityManager em
everything is fine, however if in the Seam component I do:
@In(create=true) EntityManager em
the application breaks up and I get:
| Caused by: org.jboss.seam.RequiredException: In attribute requires value for component: newAuction.em
| at org.jboss.seam.Component.getInstanceToInject(Component.java:1882)
| at org.jboss.seam.Component.injectFields(Component.java:1348)
| at org.jboss.seam.Component.inject(Component.java:1118)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectNonreentrantComponent(BijectionInterceptor.java:76)
| at org.jboss.seam.interceptors.BijectionInterceptor.bijectComponent(BijectionInterceptor.java:58)
| ...
|
Any ideas what may be wrong? I was thinking that maybe it's because I'm using Trinidad and according to the documentation I had to turn off the Seam view handler in web.xml (http://wiki.apache.org/myfaces/Facelets_with_Trinidad)
<view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
|
When I keep it indeed I get a Trinidad error:
| java.lang.IllegalStateException: No RenderingContext
| at org.apache.myfaces.trinidad.render.CoreRenderer.encodeBegin(CoreRenderer.java:159)
| at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:667)
|
Can it has something to do with that? Any help appreciated!
Cheers,
Adam Koprowski
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4008046#4008046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4008046
19 years, 2 months