2 Replies Latest reply on Mar 9, 2012 8:00 AM by Feng Jiang

    Cannot join transaction: jpa join in the jta transaction failed in jbossas7

    Feng Jiang Newbie
      16:15:56,623 WARN  [org.hibernate.ejb.AbstractEntityManagerImpl] (http--127.0.0.1-8080-1) HHH000326: Cannot join transaction: do not override hibernate.transaction.factory_class
      16:15:56,626 ERROR [stderr] (http--127.0.0.1-8080-1) javax.persistence.TransactionRequiredException: No active JTA transaction on joinTransaction call
      16:15:56,628 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1210)
      16:15:56,630 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:1160)
      16:15:56,633 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:15:56,634 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:15:56,636 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:15:56,638 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
      16:15:56,639 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:44)
      16:15:56,642 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:105)
      16:15:56,644 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.weld.proxies.EntityManager$1826020631$Proxy$_$$_WeldClientProxy.joinTransaction(EntityManager$1826020631$Proxy$_$$_WeldClientProxy.java)
      16:15:56,646 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.epoint.transaction.jta.JtaTransactionInterceptor.jtaTransaction(JtaTransactionInterceptor.java:37)
      16:15:56,648 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      16:15:56,659 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:15:56,663 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:15:56,665 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
      16:15:56,666 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.interceptor.proxy.InterceptorInvocation$InterceptorMethodInvocation.invoke(InterceptorInvocation.java:72)
      16:15:56,669 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.interceptor.proxy.SimpleInterceptionChain.invokeNextInterceptor(SimpleInterceptionChain.java:82)
      16:15:56,673 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.interceptor.proxy.InterceptorMethodHandler.executeInterception(InterceptorMethodHandler.java:133)
      16:15:56,675 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.interceptor.proxy.InterceptorMethodHandler.invoke(InterceptorMethodHandler.java:112)
      16:15:56,677 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.weld.bean.proxy.CombinedInterceptorAndDecoratorStackMethodHandler.invoke(CombinedInterceptorAndDecoratorStackMethodHandler.java:53)
      16:15:56,681 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.epoint.frame.service.impl.CURDServiceImpl$Proxy$_$$_WeldSubclass.getResultList(CURDServiceImpl$Proxy$_$$_WeldSubclass.java)
      16:15:56,683 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.epoint.frame.action.mainpage.TestAction.test(TestAction.java:60)
      16:15:56,684 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.epoint.frame.action.mainpage.TestAction$Proxy$_$$_WeldClientProxy.test(TestAction$Proxy$_$$_WeldClientProxy.java)
      16:15:56,686 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       16:15:56,687 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      16:15:56,692 ERROR [stderr] (http--127.0.0.1-8080-1)           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      16:15:56,694 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.reflect.Method.invoke(Method.java:597)
      16:15:56,695 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.el.parser.AstValue.invoke(AstValue.java:262)
      16:15:56,697 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:278)
      16:15:56,698 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:39)
      16:15:56,739 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:50)
      16:15:56,740 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
      16:15:56,742 ERROR [stderr] (http--127.0.0.1-8080-1)           at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
      16:15:56,744 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
      16:15:56,746 ERROR [stderr] (http--127.0.0.1-8080-1)           at javax.faces.component.UICommand.broadcast(UICommand.java:315)
      16:15:56,748 ERROR [stderr] (http--127.0.0.1-8080-1)           at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
      16:15:56,751 ERROR [stderr] (http--127.0.0.1-8080-1)           at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
      16:15:56,753 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
      16:15:56,755 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      16:15:56,756 ERROR [stderr] (http--127.0.0.1-8080-1)           at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      16:15:56,758 ERROR [stderr] (http--127.0.0.1-8080-1)           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      16:15:56,759 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
      16:15:56,761 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
      16:15:56,763 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)
      16:15:56,765 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
      16:15:56,767 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
      16:15:56,769 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
      16:15:56,770 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
      16:15:56,772 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)
      16:15:56,774 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:154)
      16:15:56,776 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)
      16:15:56,778 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      16:15:56,780 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      16:15:56,782 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)
      16:15:56,784 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
      16:15:56,786 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)
      16:15:56,788 ERROR [stderr] (http--127.0.0.1-8080-1)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)
      16:15:56,789 ERROR [stderr] (http--127.0.0.1-8080-1)           at java.lang.Thread.run(Thread.java:619)
      16:15:56,791 INFO  [stdout] (http--127.0.0.1-8080-1) 4
      
      when i try to join the jpa entitymanager in the jta transaction .the error happened  .     I use  weld+jpa2+jbossas7.1.0.Final .     What is the problem with the hibernate.transaction.factory_class  ?