Did you configure a JTA datasource in jboss?<br>Your persistence unit define that it will use a JTA datasource?<br>Can you provide us more information about your configuration files?<br><br><div class="gmail_quote">On Tue, Apr 6, 2010 at 3:41 AM, ramram <span dir="ltr">&lt;<a href="mailto:ramram858@gmail.com">ramram858@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Hi All,<br>
<br>
   I am migrating my application from Tomcat to JBoss and I was faced by the<br>
following exception. Although I removed the jta.jar from the lib. It is y<br>
Caused by: javax.persistence.TransactionRequiredException: No active JTA<br>
transaction on joinTransaction  anyone have an idea how to fix this issue.<br>
<br>
<br>
java.lang.RuntimeException: Could not initialize stateful knowledge session:<br>
java.lang.reflect.InvocationTargetException<br>
    at<br>
com.fp.workflow.engine.EngineProcessDef.newStatefulKnowledgeSession(EngineProcessDef.java:128)<br>
    at<br>
com.fp.workflow.engine.EngineProcessDef.getSession(EngineProcessDef.java:151)<br>
    at<br>
com.fp.workflow.engine.EngineProcessDef.&lt;init&gt;(EngineProcessDef.java:41)<br>
    at<br>
com.fp.workflow.engine.InitializeEngine.contextInitialized(InitializeEngine.java:19)<br>
    at<br>
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3856)<br>
    at<br>
org.apache.catalina.core.StandardContext.start(StandardContext.java:4361)<br>
    at<br>
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:790)<br>
    at<br>
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:770)<br>
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
    at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
    at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:597)<br>
    at<br>
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)<br>
    at<br>
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)<br>
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br>
    at<br>
org.apache.catalina.core.StandardContext.init(StandardContext.java:5312)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
    at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
    at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:597)<br>
    at<br>
org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:296)<br>
    at<br>
org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)<br>
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br>
    at<br>
org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)<br>
    at<br>
org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)<br>
    at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)<br>
    at org.jboss.web.WebModule.startModule(WebModule.java:83)<br>
    at org.jboss.web.WebModule.startService(WebModule.java:61)<br>
    at<br>
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)<br>
    at<br>
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)<br>
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)<br>
    at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:597)<br>
    at<br>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)<br>
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)<br>
    at<br>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br>
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br>
    at<br>
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)<br>
    at $Proxy0.start(Unknown Source)<br>
    at org.jboss.system.ServiceController.start(ServiceController.java:417)<br>
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)<br>
    at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:597)<br>
    at<br>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)<br>
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)<br>
    at<br>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br>
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br>
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)<br>
    at $Proxy44.start(Unknown Source)<br>
    at<br>
org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
    at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
    at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:597)<br>
    at<br>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)<br>
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)<br>
    at<br>
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br>
    at<br>
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)<br>
    at<br>
org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)<br>
    at<br>
org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)<br>
    at<br>
org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)<br>
    at<br>
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)<br>
    at<br>
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br>
    at<br>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br>
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br>
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)<br>
    at $Proxy45.start(Unknown Source)<br>
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)<br>
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)<br>
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)<br>
    at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)<br>
    at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:597)<br>
    at<br>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)<br>
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)<br>
    at<br>
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br>
    at<br>
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br>
    at<br>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br>
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br>
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)<br>
    at $Proxy9.deploy(Unknown Source)<br>
    at<br>
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)<br>
    at<br>
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)<br>
    at<br>
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)<br>
    at<br>
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)<br>
    at<br>
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)<br>
    at<br>
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)<br>
    at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)<br>
    at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:597)<br>
    at<br>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)<br>
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)<br>
    at<br>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br>
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br>
    at<br>
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)<br>
    at $Proxy0.start(Unknown Source)<br>
    at org.jboss.system.ServiceController.start(ServiceController.java:417)<br>
    at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)<br>
    at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:597)<br>
    at<br>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)<br>
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)<br>
    at<br>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br>
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br>
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)<br>
    at $Proxy4.start(Unknown Source)<br>
    at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)<br>
    at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)<br>
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)<br>
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)<br>
    at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)<br>
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
    at<br>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
    at<br>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
    at java.lang.reflect.Method.invoke(Method.java:597)<br>
    at<br>
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)<br>
    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)<br>
    at<br>
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br>
    at<br>
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)<br>
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)<br>
    at<br>
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)<br>
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)<br>
    at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)<br>
    at $Proxy5.deploy(Unknown Source)<br>
    at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)<br>
    at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)<br>
    at org.jboss.Main.boot(Main.java:200)<br>
    at org.jboss.Main$1.run(Main.java:508)<br>
    at java.lang.Thread.run(Thread.java:619)<br>
Caused by: java.lang.IllegalStateException:<br>
java.lang.reflect.InvocationTargetException<br>
    at<br>
org.drools.persistence.jpa.impl.JPAKnowledgeServiceProviderImpl.buildCommanService(JPAKnowledgeServiceProviderImpl.java:97)<br>
    at<br>
org.drools.persistence.jpa.impl.JPAKnowledgeServiceProviderImpl.loadStatefulKnowledgeSession(JPAKnowledgeServiceProviderImpl.java:72)<br>
    at<br>
org.drools.persistence.jpa.JPAKnowledgeService.loadStatefulKnowledgeSession(JPAKnowledgeService.java:102)<br>
    at<br>
com.fp.workflow.engine.EngineProcessDef.newStatefulKnowledgeSession(EngineProcessDef.java:82)<br>
    ... 138 more<br>
Caused by: java.lang.reflect.InvocationTargetException<br>
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br>
    at<br>
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)<br>
    at<br>
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)<br>
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)<br>
    at<br>
org.drools.persistence.jpa.impl.JPAKnowledgeServiceProviderImpl.buildCommanService(JPAKnowledgeServiceProviderImpl.java:85)<br>
    ... 141 more<br>
Caused by: java.lang.RuntimeException: Could not rollback transaction<br>
    at<br>
org.drools.persistence.session.SingleSessionCommandService.&lt;init&gt;(SingleSessionCommandService.java:196)<br>
    ... 146 more<br>
Caused by: java.lang.RuntimeException: Could not find session data for id 1<br>
    at<br>
org.drools.persistence.session.SingleSessionCommandService.&lt;init&gt;(SingleSessionCommandService.java:193)<br>
    ... 146 more<br>
Caused by: javax.persistence.TransactionRequiredException: No active JTA<br>
transaction on joinTransaction call<br>
    at<br>
org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:458)<br>
    at<br>
org.hibernate.ejb.AbstractEntityManagerImpl.joinTransaction(AbstractEntityManagerImpl.java:431)<br>
    at<br>
org.drools.persistence.session.SingleSessionCommandService.&lt;init&gt;(SingleSessionCommandService.java:180)<br>
    ... 146 more<br>
<br>
<br>
Regards<br>
Ram<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/Configuring-Persistance-to-JBoss-tp699689p699689.html" target="_blank">http://n3.nabble.com/Configuring-Persistance-to-JBoss-tp699689p699689.html</a><br>
Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>