3 Replies Latest reply on Jan 5, 2011 9:10 AM by Andi D

    JBoss AS 6 Final error "No active JTA transaction on joinTransaction call"

    Andi D Newbie

      Hi,

       

      When I try to join a transaction with:

       

      entityManager.joinTransaction();
      

       

      I got following exception with JBoss AS 6 Final!

       

      Caused by: javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
      

       

      Do you know the reason for this TransactionRequiredException??

       

      btw: I'm using seam 3 for development of my application.

        • 1. Re: JBoss AS 6 Final error "No active JTA transaction on joinTransaction call"
          jaikiran pai Master

          You'll have to tell us a bit more about your application and the code which calls that. Also post the entire exception stacktrace.

          • 2. Re: JBoss AS 6 Final error "No active JTA transaction on joinTransaction call"
            Andi D Newbie

            The application at the moment just manages three entities, and contains a usermanagement. The entire stacktrace is here:

             

            14:42:46,648 INFO  [STDOUT] juhu - MutableController
            14:42:46,651 SCHWERWIEGEND [javax.enterprise.resource.webcontainer.jsf.application] Error Rendering View[/sample/sampleEdit.xhtml]: javax.el.ELException: /sample/sampleEdit.xhtml: javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
                at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:85) [:2.0.3-]
                at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:78) [:2.0.3-]
                at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:179) [:2.0.3-]
                at org.richfaces.renderkit.html.PanelBaseRenderer.renderHeaderFacet(PanelBaseRenderer.java:44) [:4.0.0.20101110-M4]
                at org.richfaces.renderkit.html.PanelRenderer.encodeEnd(PanelRenderer.java:124) [:4.0.0.20101110-M4]
                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650) [:2.0.3-]
                at javax.faces.render.Renderer.encodeChildren(Renderer.java:164) [:2.0.3-]
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) [:2.0.3-]
                at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389) [:2.0.3-]
                at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127) [:2.0.3-]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269) [:2.0.3-]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269) [:2.0.3-]
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117) [:2.0.3-]
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-]
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135) [:2.0.3-]
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309) [:2.0.3-]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.jboss.seam.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:69) [:3.0.0.Alpha3]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.jboss.seam.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:79) [:3.0.0.Alpha3]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
            Caused by: javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
                at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1013) [:3.6.0.Final]
                at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:973) [:3.6.0.Final]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
                at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48) [:6.0.0.Final]
                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125) [:6.0.0.Final]
                at org.jboss.weld.proxies.org$jboss$weld$beanProducerMethod-at$icbi$seqbench$factory$DBFactorymethod_create()_$$_WeldClientProxy.joinTransaction(org$jboss$weld$beanProducerMethod-at$icbi$seqbench$factory$DBFactorymethod_create()_$$_WeldClientProxy.java)
                at at.icbi.seqbench.seam.home.EntityHome.joinTransaction(EntityHome.java:470) [:]
                at at.icbi.seqbench.seam.home.EntityHome.getInstance(EntityHome.java:293) [:]
                at at.icbi.seqbench.session.sample.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.getInstance(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.java)
                at at.icbi.seqbench.seam.home.EntityHome.isManaged(EntityHome.java:267) [:]
                at at.icbi.seqbench.session.sample.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.isManaged(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.java)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
                at org.jboss.interceptor.proxy.SimpleInterceptionChain.invokeNextInterceptor(SimpleInterceptionChain.java:114) [:2.0.0.CR1]
                at org.jboss.interceptor.proxy.InterceptorInvocationContext.proceed(InterceptorInvocationContext.java:143) [:2.0.0.CR1]
                at org.jboss.seam.persistence.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:162) [:3.0.0.Beta2]
                at org.jboss.seam.persistence.transaction.Work.workInTransaction(Work.java:60) [:3.0.0.Beta2]
                at org.jboss.seam.persistence.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:156) [:3.0.0.Beta2]
                at sun.reflect.GeneratedMethodAccessor454.invoke(Unknown Source) [:1.6.0_22]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
                at org.jboss.interceptor.proxy.InterceptorInvocation$InterceptorMethodInvocation.invoke(InterceptorInvocation.java:72) [:2.0.0.CR1]
                at org.jboss.interceptor.proxy.SimpleInterceptionChain.invokeNextInterceptor(SimpleInterceptionChain.java:82) [:2.0.0.CR1]
                at org.jboss.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:133) [:2.0.0.CR1]
                at org.jboss.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:112) [:2.0.0.CR1]
                at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:66) [:6.0.0.Final]
                at at.icbi.seqbench.session.sample.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.isManaged(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.java)
                at at.icbi.seqbench.session.sample.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldClientProxy.isManaged(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldClientProxy.java)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
                at javax.el.BeanELResolver.getValue(BeanELResolver.java:302) [:1.0.0.Final]
                at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) [:1.0.0.Final]
                at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:71) [:2.0.3-]
                at org.apache.el.parser.AstValue.getValue(AstValue.java:134) [:6.0.0.Final]
                at org.apache.el.parser.AstChoice.getValue(AstChoice.java:43) [:6.0.0.Final]
                at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [:6.0.0.Final]
                at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [:6.0.0.Final]
                at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [:6.0.0.Final]
                at com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:220) [:2.0.3-]
                at com.sun.faces.facelets.el.ELText$ELTextComposite.writeText(ELText.java:144) [:2.0.3-]
                at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:82) [:2.0.3-]
                ... 48 more
            
            14:42:46,657 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/SeqBench].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception: javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
                at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1013) [:3.6.0.Final]
                at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:973) [:3.6.0.Final]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
                at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48) [:6.0.0.Final]
                at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125) [:6.0.0.Final]
                at org.jboss.weld.proxies.org$jboss$weld$beanProducerMethod-at$icbi$seqbench$factory$DBFactorymethod_create()_$$_WeldClientProxy.joinTransaction(org$jboss$weld$beanProducerMethod-at$icbi$seqbench$factory$DBFactorymethod_create()_$$_WeldClientProxy.java)
                at at.icbi.seqbench.seam.home.EntityHome.joinTransaction(EntityHome.java:470) [:]
                at at.icbi.seqbench.seam.home.EntityHome.getInstance(EntityHome.java:293) [:]
                at at.icbi.seqbench.session.sample.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.getInstance(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.java)
                at at.icbi.seqbench.seam.home.EntityHome.isManaged(EntityHome.java:267) [:]
                at at.icbi.seqbench.session.sample.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.isManaged(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.java)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
                at org.jboss.interceptor.proxy.SimpleInterceptionChain.invokeNextInterceptor(SimpleInterceptionChain.java:114) [:2.0.0.CR1]
                at org.jboss.interceptor.proxy.InterceptorInvocationContext.proceed(InterceptorInvocationContext.java:143) [:2.0.0.CR1]
                at org.jboss.seam.persistence.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:162) [:3.0.0.Beta2]
                at org.jboss.seam.persistence.transaction.Work.workInTransaction(Work.java:60) [:3.0.0.Beta2]
                at org.jboss.seam.persistence.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:156) [:3.0.0.Beta2]
                at sun.reflect.GeneratedMethodAccessor454.invoke(Unknown Source) [:1.6.0_22]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
                at org.jboss.interceptor.proxy.InterceptorInvocation$InterceptorMethodInvocation.invoke(InterceptorInvocation.java:72) [:2.0.0.CR1]
                at org.jboss.interceptor.proxy.SimpleInterceptionChain.invokeNextInterceptor(SimpleInterceptionChain.java:82) [:2.0.0.CR1]
                at org.jboss.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:133) [:2.0.0.CR1]
                at org.jboss.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:112) [:2.0.0.CR1]
                at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:66) [:6.0.0.Final]
                at at.icbi.seqbench.session.sample.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.isManaged(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.java)
                at at.icbi.seqbench.session.sample.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldClientProxy.isManaged(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldClientProxy.java)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_22]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_22]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_22]
                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_22]
                at javax.el.BeanELResolver.getValue(BeanELResolver.java:302) [:1.0.0.Final]
                at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:175) [:1.0.0.Final]
                at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:71) [:2.0.3-]
                at org.apache.el.parser.AstValue.getValue(AstValue.java:134) [:6.0.0.Final]
                at org.apache.el.parser.AstChoice.getValue(AstChoice.java:43) [:6.0.0.Final]
                at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:187) [:6.0.0.Final]
                at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [:6.0.0.Final]
                at org.jboss.weld.el.WeldValueExpression.getValue(WeldValueExpression.java:55) [:6.0.0.Final]
                at com.sun.faces.facelets.el.ELText$ELTextVariable.writeText(ELText.java:220) [:2.0.3-]
                at com.sun.faces.facelets.el.ELText$ELTextComposite.writeText(ELText.java:144) [:2.0.3-]
                at com.sun.faces.facelets.compiler.TextInstruction.write(TextInstruction.java:82) [:2.0.3-]
                at com.sun.faces.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:78) [:2.0.3-]
                at com.sun.faces.facelets.compiler.UILeaf.encodeAll(UILeaf.java:179) [:2.0.3-]
                at org.richfaces.renderkit.html.PanelBaseRenderer.renderHeaderFacet(PanelBaseRenderer.java:44) [:4.0.0.20101110-M4]
                at org.richfaces.renderkit.html.PanelRenderer.encodeEnd(PanelRenderer.java:124) [:4.0.0.20101110-M4]
                at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:879) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1650) [:2.0.3-]
                at javax.faces.render.Renderer.encodeChildren(Renderer.java:164) [:2.0.3-]
                at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:849) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1643) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) [:2.0.3-]
                at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1646) [:2.0.3-]
                at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:389) [:2.0.3-]
                at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:127) [:2.0.3-]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269) [:2.0.3-]
                at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:269) [:2.0.3-]
                at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:117) [:2.0.3-]
                at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:97) [:2.0.3-]
                at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:135) [:2.0.3-]
                at javax.faces.webapp.FacesServlet.service(FacesServlet.java:309) [:2.0.3-]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.jboss.seam.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:69) [:3.0.0.Alpha3]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.jboss.seam.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:79) [:3.0.0.Alpha3]
                at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:274) [:6.0.0.Final]
                at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242) [:6.0.0.Final]
                at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [:6.0.0.Final]
                at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:181) [:6.0.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
                at org.jboss.modcluster.catalina.CatalinaContext$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
                at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88) [:6.0.0.Final]
                at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100) [:6.0.0.Final]
                at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [:6.0.0.Final]
                at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158) [:6.0.0.Final]
                at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [:6.0.0.Final]
                at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53) [:6.0.0.Final]
                at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [:6.0.0.Final]
                at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:654) [:6.0.0.Final]
                at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [:6.0.0.Final]
                at java.lang.Thread.run(Thread.java:662) [:1.6.0_22]
            

             

            As you can see in the above listed stacktrace the error occurs at:

             

            at at.icbi.seqbench.seam.home.EntityHome.joinTransaction(EntityHome.java:470) [:]
            at at.icbi.seqbench.seam.home.EntityHome.getInstance(EntityHome.java:293) [:]
            at at.icbi.seqbench.session.sample.org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.getInstance(org$jboss$weld$bean-jboss$classloader:id="vfs:$$$home$andreas$Applications$jboss-6$0$0$Final$server$default$deploy$SeqBench$war"-ManagedBean-at$icbi$seqbench$session$sample$SampleHome[@at$icbi$seqbench$stereotype$Home()@javax$ejb$TransactionAttribute(value=REQUIRED)@org$jboss$seam$persistence$transaction$TransactionalInterceptorBinding()]{at$icbi$seqbench$seam$home$EntityHome$conversationManager[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$entityManager[@at$icbi$seqbench$factory$SeqBenchPersistence()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$identity[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$log[@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHome$operationEvent[@javax$enterprise$inject$Any()@javax$inject$Inject()]$at$icbi$seqbench$seam$home$EntityHomeUser$user[@javax$inject$Inject()]$at$icbi$seqbench$session$sample$SampleHome$prePassivate[@javax$ejb$PrePassivate()]()$}_$$_WeldSubclass.java)
            at at.icbi.seqbench.seam.home.EntityHome.isManaged(EntityHome.java:267) [:]
            

             

            Where the those methods looks as follows:

             

            public boolean isManaged()
              {
                 return getInstance() != null && isIdDefined();
              }
            

             

            public E getInstance()
              {
                joinTransaction();
                if (instance == null)
                {
                  initInstance();
                }
                // check if id is set -> set it in instance
                if (instance.getId() == null && getId() != null)
                { // FIXME needs some testing!
                  instance.setId(getId());
                }
            
                return instance;
              }
            

             

            protected void joinTransaction()
              {
                entityManager.joinTransaction();
              }
            

             

             

            And the EntityManager is createt in:

             

             

            import javax.enterprise.context.ConversationScoped;
            import javax.enterprise.inject.Disposes;
            import javax.enterprise.inject.Produces;
            import javax.persistence.EntityManager;
            import javax.persistence.EntityManagerFactory;
            import javax.persistence.PersistenceUnit;
            
            @ConversationScoped
            public class DBFactory implements Serializable
            {
               private static final long serialVersionUID = -5267593171036179836L;
            
               @PersistenceUnit
               private EntityManagerFactory emf;
                              
               @Produces
               @SeqBenchPersistence
               @ConversationScoped
               public EntityManager create()
               {
                  return emf.createEntityManager();
               }
            
               public void close(@Disposes @SeqBenchPersistence EntityManager em)
               {
                  em.close();
               }
            }
            
            • 3. Re: JBoss AS 6 Final error "No active JTA transaction on joinTransaction call"
              Andi D Newbie

              Does anyone have an Idea about:

              javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call

               

              ??