11 Replies Latest reply on May 11, 2006 5:11 AM by dimitris

    [EJBTimerServiceImpl] Cannot obtain TransactionManager - Sti

    jferraro11

      Has anyone figured out how to fix this problem on boot.....

      10:25:47,578 WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager not bound

      It is still a problem in boss-4.0.4.CR2. Any plans on getting a fix ?

      Thanks,
      Jeff
      jferraro@ihc.com

        • 1. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
          starksm64

          Sufficient details to understand how to reproduce this are needed.

          • 2. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
            jferraro11

            Just Run the installer and start Jboss.....

            • 3. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
              jferraro11

              Sorry Scott forgot to say to do an ejb3 install (full - NO CLUSTER)

              • 4. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
                starksm64

                Ok, I see it. This is just noise due to a missing dependency:

                http://jira.jboss.com/jira/browse/JBAS-3053

                • 5. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
                  luntain

                  The workaround:

                  Add a depends:

                  <!-- An EJB Timer Service that is Tx aware -->

                  jboss.ejb:service=EJBTimerService,retryPolicy
                  =fixedDelay
                  jboss.ejb:service=EJBTimerService,persi
                  stencePolicy=database
                  org.jboss.ejb.txtimer.BigIntege
                  rTimerIdGenerator
                  org.jboss.ejb.txtimer.TimedOb
                  jectInvokerImpl
                  jboss:service=TransactionManager


                  I wasn't sure where to add this so I added it to jboss-service.xml. Now I get:

                  10:17:13,765 ERROR [MainDeployer] Could not create deployment: file:/C:/tools/jboss/jboss-4.0.4.CR2/server/default/deploy/ejb-timer-service.xml
                  org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.ejb:service=EJBTimerService
                  at org.jboss.system.ServiceCreator.install(ServiceCreator.java:103)
                  at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:449)
                  at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
                  at org.jboss.system.ServiceController.install(ServiceController.java:226)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                  at $Proxy4.install(Unknown Source)
                  at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
                  at org.jboss.deployment.MainDeployer.create(MainDeployer.java:953)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:807)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                  at $Proxy6.deploy(Unknown Source)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                  at $Proxy0.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:417)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                  at $Proxy4.start(Unknown Source)
                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                  at $Proxy5.deploy(Unknown Source)
                  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                  at org.jboss.Main.boot(Main.java:200)
                  at org.jboss.Main$1.run(Main.java:464)
                  at java.lang.Thread.run(Thread.java:595)
                  10:17:17,578 INFO [MailService] Mail Service bound to java:/Mail
                  10:17:18,593 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=clas
                  s org.jboss.net.sockets.DefaultSocketFactory
                  10:17:18,671 INFO [SubscriptionManager] Bound event dispatcher to java:comp/env/EventDispatcher
                  10:17:18,859 ERROR [EJBTimerServiceImpl] Cannot obtain the implementation of a RetryPolicy
                  org.jboss.mx.util.MBeanProxyCreationException: Object name jboss.ejb:service=EJBTimerService,retryPolicy=fixedDelay not found: javax.management.Instan
                  ceNotFoundException: jboss.ejb:service=EJBTimerService,retryPolicy=fixedDelay is not registered.
                  at org.jboss.mx.util.JMXInvocationHandler.(JMXInvocationHandler.java:163)
                  at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:90)
                  at org.jboss.mx.util.MBeanProxy.get(MBeanProxy.java:78)
                  at org.jboss.ejb.txtimer.EJBTimerServiceImpl.startService(EJBTimerServiceImpl.java:188)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                  at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                  at $Proxy0.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:417)
                  at org.jboss.system.ServiceController.start(ServiceController.java:435)
                  at org.jboss.system.ServiceController.start(ServiceController.java:435)
                  at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                  at $Proxy4.start(Unknown Source)
                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
                  at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                  at $Proxy6.deploy(Unknown Source)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:334)
                  at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:522)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:207)
                  at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:280)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
                  at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
                  at $Proxy0.start(Unknown Source)
                  at org.jboss.system.ServiceController.start(ServiceController.java:417)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                  at $Proxy4.start(Unknown Source)
                  at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
                  at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
                  at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                  at java.lang.reflect.Method.invoke(Method.java:585)
                  at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
                  at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
                  at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
                  at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                  at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:260)
                  at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
                  at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:190)
                  at $Proxy5.deploy(Unknown Source)
                  at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
                  at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
                  at org.jboss.Main.boot(Main.java:200)
                  at org.jboss.Main$1.run(Main.java:464)
                  at java.lang.Thread.run(Thread.java:595)
                  10:17:18,953 WARN [EJBTimerServiceImpl] Cannot obtain the implementation of a PersistencePolicy, using NoopPersistencePolicy: org.jboss.mx.util.MBean
                  ProxyCreationException: Object name jboss.ejb:service=EJBTimerService,persistencePolicy=database not found: javax.management.InstanceNotFoundException
                  : jboss.ejb:service=EJBTimerService,persistencePolicy=database is not registered.
                  10:17:20,218 INFO [Embedded] Catalina naming disabled
                  10:17:20,343 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.

                  ...

                  10:17:50,828 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

                  --- Incompletely deployed packages ---
                  org.jboss.deployment.DeploymentInfo@ba895bca { url=file:/C:/tools/jboss/jboss-4.0.4.CR2/server/default/deploy/ejb-timer-service.xml }
                  deployer: org.jboss.deployment.SARDeployer@4fc156
                  status: Deployment FAILED reason: Trying to install an already registered mbean: jboss.ejb:service=EJBTimerService
                  state: FAILED
                  watch: file:/C:/tools/jboss/jboss-4.0.4.CR2/server/default/deploy/ejb-timer-service.xml
                  altDD: null
                  lastDeployed: 1144225033750
                  lastModified: 1144225033734
                  mbeans:

                  • 6. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
                    luntain

                     

                    Add a depends:
                    
                     <!-- An EJB Timer Service that is Tx aware -->
                     <mbean code="org.jboss.ejb.txtimer.EJBTimerServiceImpl"
                     name="jboss.ejb:service=EJBTimerService">
                     <attribute name="RetryPolicy">jboss.ejb:service=EJBTimerService,retryPolicy
                    =fixedDelay</attribute>
                     <attribute name="PersistencePolicy">jboss.ejb:service=EJBTimerService,persi
                    stencePolicy=database</attribute>
                     <attribute name="TimerIdGeneratorClassName">org.jboss.ejb.txtimer.BigIntege
                    rTimerIdGenerator</attribute>
                     <attribute name="TimedObjectInvokerClassName">org.jboss.ejb.txtimer.TimedOb
                    jectInvokerImpl</attribute>
                     <depends>jboss:service=TransactionManager</depends>
                     </mbean>


                    • 7. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
                      starksm64

                      Add the depends line to the existing ejb-timer-service.xml configuration

                      • 8. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
                        jferraro11

                        Scott, Luntain,

                        Thanks for the help ! This cleared things up - thanks !

                        Jeff

                        • 9. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
                          evsi

                          Hello,

                          I've the WARN [TreeCache] No transaction manager lookup class has been defined. Transactions cannot be used.

                          I tried to follow this Topic but I don't find any ejb-timer-service.xml in my jboss CR2

                          Can you tell me step by step what I must do to fix the WARN?

                          thanks

                          • 10. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
                            elbutcher

                            I have "sometimes" the same error when I start JBOSS (jboss-4.0.4.CR2) under WindowsXp using Eclipse WTP:

                            22:10:35,393 INFO [WebService] Using RMI server codebase: http://t42:8083/
                            22:10:35,533 WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager not bound


                            I have this error for 3 days... and when I restart my computer it's OK, for a few time.

                            New soft installed recently on my computer are : last microsoft security update patch and last live messenger beta release.

                            Any idea, about this problem?
                            Bye

                            • 11. Re: [EJBTimerServiceImpl] Cannot obtain TransactionManager -
                              dimitris

                              you can ignore the warning