1 Reply Latest reply on Dec 4, 2002 10:59 AM by Fred

    Tyrex transaction manager???

    Denagbe Newbie

      Hi,

      I want to use the Tyrex transaction manager.
      For that normally I simply need to add xerces
      in my lib directory and to uncomment the Tyrex
      section of the jboss-service.xml and comment the
      default one.

      1- Am I supposed to comment also the XidFactory
      mbean?

      2- I have an exception when starting Jboss

      12:52:07,514 INFO [NamingService] Creating
      12:52:07,514 INFO [NamingService] Created
      12:52:07,514 INFO [JNDIView] Creating
      12:52:07,514 INFO [JNDIView] Created
      12:52:07,524 INFO [SecurityConfig] Creating
      12:52:07,524 INFO [SecurityConfig] Created
      12:52:07,524 INFO [JaasSecurityManagerService] Creating
      12:52:07,524 INFO [JaasSecurityManagerService] Created
      12:52:07,534 INFO [JaasSecurityManagerService] Destroying
      12:52:07,534 INFO [JaasSecurityManagerService] Destroyed
      12:52:07,534 INFO [SecurityConfig] Destroying
      12:52:07,534 INFO [SecurityConfig] Destroyed
      12:52:07,534 INFO [JNDIView] Destroying
      12:52:07,534 INFO [JNDIView] Destroyed
      12:52:07,534 INFO [NamingService] Destroying
      12:52:07,534 INFO [NamingService] Destroyed
      12:52:07,534 INFO [WebService] Destroying
      12:52:07,534 INFO [WebService] Destroyed
      12:52:07,544 INFO [Log4jService] Destroying
      12:52:07,544 INFO [Log4jService] Destroyed
      12:52:07,544 INFO [SystemPropertiesService] Destroying
      12:52:07,544 INFO [SystemPropertiesService] Destroyed
      12:52:07,544 INFO [PropertyEditorManagerService] Destroying
      12:52:07,544 INFO [PropertyEditorManagerService] Destroyed
      12:52:07,575 ERROR [Server] start failed
      org.jboss.deployment.DeploymentException: jboss:service=TransactionManager is not register
      ed.; - nested throwable: (javax.management.InstanceNotFoundException: jboss:service=Transa
      ctionManager is not registered.)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:760)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:620)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:569)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
      va:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatche
      r.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: javax.management.InstanceNotFoundException: jboss:service=TransactionManager is
      not registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:362
      )
      at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:528)
      at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:739)
      at org.jboss.system.ServiceController.create(ServiceController.java:277)
      at org.jboss.system.ServiceController.create(ServiceController.java:243)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
      va:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatche
      r.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.create(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:217)
      ... 15 more
      org.jboss.deployment.DeploymentException: jboss:service=TransactionManager is not register
      ed.; - nested throwable: (javax.management.InstanceNotFoundException: jboss:service=Transa
      ctionManager is not registered.)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:760)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:620)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:585)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:569)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
      va:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatche
      r.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:324)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:221)
      at org.jboss.Main.boot(Main.java:148)
      at org.jboss.Main$1.run(Main.java:381)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: javax.management.InstanceNotFoundException: jboss:service=TransactionManager is
      not registered.
      at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:362
      )
      at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:528)
      at org.jboss.system.ServiceController.getServiceProxy(ServiceController.java:739)
      at org.jboss.system.ServiceController.create(ServiceController.java:277)
      at org.jboss.system.ServiceController.create(ServiceController.java:243)
      at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.ja
      va:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatche
      r.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
      at $Proxy3.create(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:217)
      ... 15 more


      What did I do wrong? What do I really need to do to be able to
      use Tyrex?

      Thanks in advance.
      Arnaud

        • 1. Re: Tyrex transaction manager???
          Fred Newbie

          I haven't run Tyrex, but check the following:

          1. jboss:service=XidFactory is used by jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool, so I think it would always need to be there.

          2. standardjboss.xml container defintions define that directly references org.jboss.tm.TxManager. I would think these need to be changed to the tyrex class.

          3. I'm not sure if change is required to the transaction proxy interceptor in standardjboss.xml.

          Please post the final config definition when you get it running.