1 Reply Latest reply on Jan 3, 2012 9:41 AM by Shelly McGowan

    java.lang.ClassNotFoundException: org.jboss.as.messaging.jms.TransactionManagerLocator

    Jack Lara Newbie

      After putting the "standalone-full.xml" server in DEBUG mode by doing the following steps

       

      <profile>

      <subsystem xmlns="urn:jboss:domain:logging:1.1">

         <console-handler name="CONSOLE">

           <level name="DEBUG"/>                                       <!--Debug-->

      .

      .

      .

      <root-logger>

      <level name="DEBUG"/>                                          <!--Debug-->

         <handlers>

           <handler name="CONSOLE"/>

           <handler name="FILE"/>

        </handlers>

      </root-logger>

       

       

      Once this was done, I am seeing the below java.lang.ClassNotFoundException

       

       

      13:16:42,594 DEBUG [org.hornetq.ra.Util] (MSC service thread 1-4) org.jboss.as.messaging.jms.TransactionManagerLocator from [Module "org.hornetq.ra:main" from local module loader @7b112783 (roots: /jlara/JBOSS/AS-7/jboss-as-7.1.0.CR1b/modules)]: java.lang.ClassNotFoundException: org.jboss.as.messaging.jms.TransactionManagerLocator from [Module "org.hornetq.ra:main" from local module loader @7b112783 (roots: /jlara/JBOSS/AS-7/jboss-as-7.1.0.CR1b/modules)]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)

                at org.hornetq.ra.Util.locateTM(Util.java:261) [hornetq-ra-2.2.7.Final.jar:]

                at org.hornetq.ra.HornetQResourceAdapter.locateTM(HornetQResourceAdapter.java:1555) [hornetq-ra-2.2.7.Final.jar:]

                at org.hornetq.ra.HornetQResourceAdapter.start(HornetQResourceAdapter.java:210) [hornetq-ra-2.2.7.Final.jar:]

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]

                at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]

                at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.startContext(AbstractResourceAdapterDeployer.java:345) [ironjacamar-deployers-common-1.0.6.Final.jar:1.0.6.Final]

                at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:2127) [ironjacamar-deployers-common-1.0.6.Final.jar:1.0.6.Final]

                at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(AbstractResourceAdapterDeployer.java:1030) [ironjacamar-deployers-common-1.0.6.Final.jar:1.0.6.Final]

                at org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator.doDeploy(ResourceAdapterActivatorService.java:148) [jboss-as-connector-7.1.0.CR1b.jar:7.1.0.CR1b]

                at org.jboss.as.connector.services.ResourceAdapterActivatorService.start(ResourceAdapterActivatorService.java:94) [jboss-as-connector-7.1.0.CR1b.jar:7.1.0.CR1b]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

       

       

      How can I fix this issue? Is this related to the issue seen in http://community.jboss.org/thread/176809

       

      The same issue is been seen in jboss-as-7.1.0.CR1b, jboss-as-7.1.0.CR1 and jboss-as-7.1.0.Beta1 (did not tested on other version on AS7)

        • 1. Re: java.lang.ClassNotFoundException: org.jboss.as.messaging.jms.TransactionManagerLocator
          Shelly McGowan Apprentice

          Darn.  I previously encounteredthis as well and just realized I had a worked around it with the following change:

          {code}

          --- a/build/src/main/resources/modules/org/hornetq/ra/main/module.xml

          +++ b/build/src/main/resources/modules/org/hornetq/ra/main/module.xml

          @@ -29,6 +29,7 @@

           

               <dependencies>

                   <module name="org.hornetq"/>

          +        <module name="org.jboss.as.messaging"/>

                   <module name="org.jboss.as.transactions"/>

                   <module name="org.jboss.jboss-transaction-spi"/>

                   <module name="javax.api"/>

          {code}

           

          Can you file an AS7 JIRA ?  While the change above will resolve your problem, I'm not sure it is the intended proper solution.