3 Replies Latest reply on Mar 9, 2017 4:50 AM by Chetan Math

    No JTA TransactionSynchronizationRegistry found at default JNDI location

    Vinay Vijay Newbie

      Hi,

           I have configured jBPM 6.0.1 on Tomcat 7.0.54 and Oracle 11g as the database using the war mentioned here. However on server start-up I get the below mentioned error. Any light on the issue is kindly appreciated.

       

      2014-07-28 16:52:48,594 [localhost-startStop-1] DEBUG No JTA TransactionSynchronizationRegistry found at default JNDI location [java:comp/TransactionSynchronizationRegistry]

      javax.naming.NameNotFoundException: Name [TransactionSynchronizationRegistry] is not bound in this Context. Unable to find [TransactionSynchronizationRegistry].

              at org.apache.naming.NamingContext.lookup(NamingContext.java:819) ~[catalina.jar:7.0.54]

              at org.apache.naming.NamingContext.lookup(NamingContext.java:153) ~[catalina.jar:7.0.54]

              at org.apache.naming.NamingContext.lookup(NamingContext.java:830) ~[catalina.jar:7.0.54]

              at org.apache.naming.NamingContext.lookup(NamingContext.java:167) ~[catalina.jar:7.0.54]

              at org.apache.naming.SelectorContext.lookup(SelectorContext.java:156) ~[catalina.jar:7.0.54]

              at javax.naming.InitialContext.lookup(Unknown Source) ~[na:1.6.0_29]

              at org.drools.persistence.jta.JtaTransactionManager.findTransactionSynchronizationRegistry(JtaTransactionManager.java:158) [drools-persistence-jpa-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.drools.persistence.jta.JtaTransactionManager.<init>(JtaTransactionManager.java:87) [drools-persistence-jpa-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.services.task.persistence.TaskTransactionInterceptor.initTransactionManager(TaskTransactionInterceptor.java:167) [jbpm-human-task-jpa-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.services.task.persistence.TaskTransactionInterceptor.<init>(TaskTransactionInterceptor.java:41) [jbpm-human-task-jpa-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.6.0_29]

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) [na:1.6.0_29]

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) [na:1.6.0_29]

              at java.lang.reflect.Constructor.newInstance(Unknown Source) [na:1.6.0_29]

              at org.jbpm.services.task.HumanTaskConfigurator.addDefaultInterceptor(HumanTaskConfigurator.java:166) [jbpm-human-task-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.services.task.HumanTaskConfigurator.getTaskService(HumanTaskConfigurator.java:141) [jbpm-human-task-core-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.kie.services.cdi.producer.HumanTaskServiceProducer.produceTaskService(HumanTaskServiceProducer.java:87) [jbpm-kie-services-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_29]

              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_29]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_29]

              at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_29]

              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:164) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstance(MethodInjectionPoint.java:137) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bean.ProducerMethod$ProducerMethodProducer.produce(ProducerMethod.java:136) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bean.AbstractProducerBean$AbstractProducer.produce(AbstractProducerBean.java:319) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bean.AbstractProducerBean.create(AbstractProducerBean.java:307) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:68) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:653) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bean.builtin.InstanceImpl.get(InstanceImpl.java:108) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jbpm.runtime.manager.impl.factory.CDITaskServiceFactory.newTaskService(CDITaskServiceFactory.java:38) [jbpm-runtime-manager-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.runtime.manager.impl.factory.CDITaskServiceFactory$Proxy$_$$_WeldClientProxy.newTaskService(CDITaskServiceFactory$Proxy$_$$_WeldClientProxy.java) [jbpm-runtime-manager-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.getTaskServiceFactory(RuntimeManagerFactoryImpl.java:130) [jbpm-runtime-manager-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl.newSingletonRuntimeManager(RuntimeManagerFactoryImpl.java:67) [jbpm-runtime-manager-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl$Proxy$_$$_WeldClientProxy.newSingletonRuntimeManager(RuntimeManagerFactoryImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-runtime-manager-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.kie.services.impl.AbstractDeploymentService.commonDeploy(AbstractDeploymentService.java:88) [jbpm-kie-services-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:138) [jbpm-kie-services-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.kie.services.impl.KModuleDeploymentService$Proxy$_$$_WeldClientProxy.deploy(KModuleDeploymentService$Proxy$_$$_WeldClientProxy.java) [jbpm-kie-services-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.initDeployments(DeploymentManagerEntryPointImpl.java:83) [jbpm-console-ng-business-domain-backend-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.initDeployments(DeploymentManagerEntryPointImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-console-ng-business-domain-backend-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.console.ng.bd.backend.server.AdministrationServiceImpl.bootstrapDeployments(AdministrationServiceImpl.java:193) [jbpm-console-ng-business-domain-backend-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.jbpm.console.ng.bd.backend.server.AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.bootstrapDeployments(AdministrationServiceImpl$Proxy$_$$_WeldClientProxy.java) [jbpm-console-ng-business-domain-backend-6.1.0-SNAPSHOT.jar:6.1.0-SNAPSHOT]

              at org.kie.workbench.backend.AppSetup.assertPlayground(AppSetup.java:148) [AppSetup.class:na]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_29]

              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_29]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_29]

              at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_29]

              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invoke(WeldMethodImpl.java:168) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bean.AbstractClassBean.defaultPostConstruct(AbstractClassBean.java:403) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.postConstruct(ManagedBean.java:178) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:298) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.context.AbstractContext.get(AbstractContext.java:103) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:90) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:79) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.kie.workbench.backend.AppSetup$Proxy$_$$_WeldClientProxy.toString(AppSetup$Proxy$_$$_WeldClientProxy.java) [AppSetup.class:na]

              at org.uberfire.commons.services.cdi.StartupBeanExtension.runPostConstruct(StartupBeanExtension.java:83) [uberfire-commons-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]

              at org.uberfire.commons.services.cdi.StartupBeanExtension.afterDeploymentValidation(StartupBeanExtension.java:67) [uberfire-commons-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]

              at org.uberfire.commons.services.cdi.StartupBeanExtension$Proxy$_$$_WeldClientProxy.afterDeploymentValidation(StartupBeanExtension$Proxy$_$$_WeldClientProxy.java) [uberfire-commons-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_29]

              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_29]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[na:1.6.0_29]

              at java.lang.reflect.Method.invoke(Unknown Source) ~[na:1.6.0_29]

              at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:164) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:46) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:382) [weld-core-1.1.21.Final.jar:2014-04-18 11:48]

              at org.jboss.weld.environment.servlet.Listener.contextInitialized(Listener.java:182) [weld-servlet-core-1.1.21.Final.jar:20140418-1148]

              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973) [catalina.jar:7.0.54]

              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467) [catalina.jar:7.0.54]

              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:7.0.54]

              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) [catalina.jar:7.0.54]

              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) [catalina.jar:7.0.54]

              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632) [catalina.jar:7.0.54]

              at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083) [catalina.jar:7.0.54]

              at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880) [catalina.jar:7.0.54]

              at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.6.0_29]

              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.6.0_29]

              at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.6.0_29]

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [na:1.6.0_29]

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.6.0_29]

              at java.lang.Thread.run(Unknown Source) [na:1.6.0_29]

       

      Regards,

      Vinay

        • 1. Re: No JTA TransactionSynchronizationRegistry found at default JNDI location
          Maciej Swiderski Master

          you can specify alternative JNDI location for transaction synchronization registry via system properties:

          -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry

           

          HTH

          • 2. Re: No JTA TransactionSynchronizationRegistry found at default JNDI location
            Vinay Vijay Newbie

            Hi Maciej,

                 Apologies for the delayed response; i was on vacation. Yes, I have set it as system property in setenv.bat. But still i get the same error.

                 Below i have mentioned all the changes that i did, after basic tomcat installation and deploying the jbpm war. Hope this gives enough information.

            1. changes in server.xml
              Added this entry within host tag - <Valve className="org.kie.integration.tomcat.JACCValve" />
            2. Added the following role and user in tomcat-users.xml
              <role rolename="admin"/>
              <user username="admin" password="admin" roles="admin,manager-gui"/>
            3. Added the file setenv.bat in bin folder of tomcat with below entry. CATALINA_HOME is defined as an environmental variable
              set CATALINA_OPTS=-Xmx512M -XX:MaxPermSize=512m -Dbtm.root=%CATALINA_HOME% -Dbitronix.tm.configuration=%CATALINA_HOME%/conf/btm-config.properties -Djbpm.tsr.jndi.lookup=java:comp/env/TransactionSynchronizationRegistry
            4. Added resource.properties file in conf folder of tomcat with following entries
              resource.ds1.className=bitronix.tm.resource.jdbc.lrc.LrcXADataSource
              resource.ds1.uniqueName=jdbc/jbpm
              resource.ds1.minPoolSize=10
              resource.ds1.maxPoolSize=20
              resource.ds1.driverProperties.driverClassName=oracle.jdbc.OracleDriver
              resource.ds1.driverProperties.url=jdbc:oracle:thin:@//localhost:1521/hwedb
              resource.ds1.driverProperties.user=jbpm
              resource.ds1.driverProperties.password=jbpm
              resource.ds1.allowLocalTransactions=true
              resource.ds1.testQuery=SELECT 1 FROM DUAL
            5. Added btm-config.properties file in conf folder of tomcat with following entries
              bitronix.tm.serverId=tomcat-btm-node0
              bitronix.tm.journal.disk.logPart1Filename=${btm.root}/work/btm1.tlog
              bitronix.tm.journal.disk.logPart2Filename=${btm.root}/work/btm2.tlog
              bitronix.tm.resource.configuration=${btm.root}/conf/resources.properties
            6. Added the following jars in tomcat/lib - btm-2.1.4.jar, btm-tomcat55-lifecycle-2.1.4.jar, javax.security.jacc-api-1.5.jar, jms-api-1.1.jar, jta-1.1.jar, kie-tomcat-integration-6.0.1.Final.jar, ojdbc6.jar, slf4j-api-1.6.0.jar, slf4j-jdk14-1.6.0.jar
            7. Changed the hibernate dialect in persistence.xml within the jbpm web app.
              <property name="hibernate.dialect" value="org.hibernate.dialect.OracleDialect"/>
            8. Changed the root level log in logback.xml from error to debug within the jbpm web app.

             

                 Please do let me know if I am doing something wrong or if I have missed out anything. Thanks in advance.

             

             

            Regards,

            Vinay

            • 3. Re: No JTA TransactionSynchronizationRegistry found at default JNDI location
              Chetan Math Newbie

              Hi Vinay, I know this is a old post but were you able to find the solution