0 Replies Latest reply on Jul 6, 2006 9:12 AM by Peter Kenens

    Error during passivate of stateful session bean

    Peter Kenens Newbie

      I have deployed a stateful session bean on jboss version 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000). The SFSB Passivation thread tries to passivate this session bean after 10 minutes. This passivation fails because of a NoClassDefFoundError on class org.jaxen.VariableContext. I solved this by putting jaxen.jar in jboss/lib next to dom4j.jar (I saw in http://fisheye.labs.jboss.com/viewrep/JBoss/jboss-system/src/main/org/jboss/Main.java?r=1.35.2.10 that jaxen.jar is referenced from code), but now I get a NoClassDefFoundError on org.jboss.container.spi.MetaDataContext.

      Has anybody an idea on how to solve this?

      Thanks.

      Caused by: java.lang.NoClassDefFoundError: org/jboss/repository/spi/MetaDataContext
       at java.lang.Class.getDeclaredMethods0(Native Method)
       at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
       at java.lang.Class.getDeclaredMethod(Class.java:1907)
       at org.jboss.serial.classmetamodel.ClassMetaData.lookupMethodOnHierarchy(ClassMetaData.java:101)
       at org.jboss.serial.classmetamodel.ClassMetaData.lookupInternalMethods(ClassMetaData.java:417)
       at org.jboss.serial.classmetamodel.ClassMetaData.<init>(ClassMetaData.java:121)
       at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:335)
       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:167)
       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202)
       at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
       at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
       at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275)
       at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202)
       at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
       at org.jboss.serial.persister.ObjectOutputStreamProxy.writeFields(ObjectOutputStreamProxy.java:79)
       at org.jboss.serial.persister.ObjectOutputStreamProxy.defaultWriteObject(ObjectOutputStreamProxy.java:68)
       at java.util.Vector.writeObject(Vector.java:1018)
      ... 178 more