3 Replies Latest reply on Oct 19, 2006 3:45 PM by Phillip Thurmond

    ClassNotFoundException when running ejb3 clustered in 4.0.5

    Phillip Thurmond Newbie

      I've been trying to test EJB3 clustering performance on JBoss AS 4.0.5.GA using a small demo application. The application works correctly under a single instance of jboss using the "all" configuration. If, however, I start up a second instance of jboss after having executed an order on the first instance, I get a ClassNotFoundException during startup. I have been able to bypass this issue by copying my classes into the lib directory, but this is not a very workable solution. Any suggestions? The stack trace I'm seeing is below:

      java.lang.ClassNotFoundException: No ClassLoaders found for: services.entities.ProductDemandPK
       at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
       at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:242)
       at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:585)
       at org.jboss.invocation.MarshalledValueInputStream.resolveClass(MarshalledValueInputStream.java:109)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
       at org.jboss.cache.Fqn.readExternal(Fqn.java:355)
       at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
       at org.jboss.cache.loader.NodeData.readExternal(NodeData.java:59)
       at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1755)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1717)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
       at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateStateTransferChildren(StateTransferIntegrator_140.java:241)
       at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateStateTransferChildren(StateTransferIntegrator_140.java:271)
       at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateStateTransferChildren(StateTransferIntegrator_140.java:271)
       at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateStateTransferChildren(StateTransferIntegrator_140.java:271)
       at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateTransientState(StateTransferIntegrator_140.java:222)
       at org.jboss.cache.statetransfer.StateTransferIntegrator_140.integrateTransientState(StateTransferIntegrator_140.java:97)
       at org.jboss.cache.TreeCache._setState(TreeCache.java:2640)
       at org.jboss.cache.TreeCache.access$000(TreeCache.java:86)
       at org.jboss.cache.TreeCache$MessageListenerAdaptor.setState(TreeCache.java:5306)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.passUp(MessageDispatcher.java:614)
       at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:331)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:722)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:554)
       at org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:691)
       at java.lang.Thread.run(Thread.java:595)