4 Replies Latest reply on Mar 15, 2011 10:48 AM by Che Schneider

    ClassLoader is not connected to a domain (probably undeployed?)

    Che Schneider Newbie

      Hi all,

       

      AS: 6.0.0.Final

      Java: 1.6

      Isolation: globally 'true'

       

      When deploying an ear file that contains multiple MDB's (in one ejb jar), I get the following exception:

      {code}

      2011-03-14 17:17:03,453 INFO  [org.hornetq.ra.inflow.HornetQActivation] (pool-1-thread-6) Attempting to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@1d5014f8 destination=/topic/MyTopic destinationType=javax.jms.Topic ack=Auto-acknowledge durable=false clientID=null user=null maxSession=1)

      2011-03-14 17:17:03,454 ERROR [org.hornetq.ra.inflow.HornetQActivation] (pool-1-thread-6) Unable to reconnect org.hornetq.ra.inflow.HornetQActivationSpec(ra=org.hornetq.ra.HornetQResourceAdapter@1d5014f8 destination=/topic/MyTopic destinationType=javax.jms.Topic ack=Auto-acknowledge durable=false clientID=null user=null maxSession=1): HornetQException[errorCode=0 message=Failed to initialise session factory]

              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:1103)

              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSession(ClientSessionFactoryImpl.java:849)

              at org.hornetq.ra.HornetQResourceAdapter.createSession(HornetQResourceAdapter.java:1289)

              at org.hornetq.ra.inflow.HornetQActivation.setupSession(HornetQActivation.java:351)

              at org.hornetq.ra.inflow.HornetQActivation.setup(HornetQActivation.java:289)

              at org.hornetq.ra.inflow.HornetQActivation.handleFailure(HornetQActivation.java:539)

              at org.hornetq.ra.inflow.HornetQActivation$SetupActivation.run(HornetQActivation.java:577)

              at org.jboss.resource.work.WorkWrapper.run(WorkWrapper.java:172)

              at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)

              at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:801)

              at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)

              at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:842)

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

              at org.jboss.threads.JBossThread.run(JBossThread.java:122)

      Caused by: java.lang.IllegalArgumentException: Unable to instantiate load balancing policy "org.hornetq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy"

              at org.hornetq.core.client.impl.ClientSessionFactoryImpl$1.run(ClientSessionFactoryImpl.java:1168)

              at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_24]

              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.instantiateLoadBalancingPolicy(ClientSessionFactoryImpl.java:1155)

              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.initialise(ClientSessionFactoryImpl.java:224)

              at org.hornetq.core.client.impl.ClientSessionFactoryImpl.createSessionInternal(ClientSessionFactoryImpl.java:1099)

              ... 13 more

      Caused by: java.lang.ClassNotFoundException: Class not found org.hornetq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy

              at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:897) [jboss-classloader.jar:2.2.0.GA]

              at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.0.GA]

              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.0.GA]

              at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [:1.6.0_24]

              at org.hornetq.core.client.impl.ClientSessionFactoryImpl$1.run(ClientSessionFactoryImpl.java:1162)

              ... 17 more

      Caused by: java.lang.IllegalStateException: BaseClassLoader@72092218{vfs:///opt/jboss-6.0.0/server/default/deploy/my.ear} classLoader is not connected to a domain (probably undeployed?) for class org.hornetq.api.core.client.loadbalance.RoundRobinConnectionLoadBalancingPolicy

              at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:881) [jboss-classloader.jar:2.2.0.GA]

              ... 21 more

      {code}

       

      Does anybody have an idea why this is happening and how to solve it?

       

      Please let me know if more input is needed and what because I don't think that I am doing something amazingly special.

       

      Cheers.

      Che