9 Replies Latest reply on Dec 18, 2006 4:55 PM by Crayton OSteen

    Error in SimpleStatefulCache$SessionTimeoutTask

    Jens Weintraut Apprentice

      Hi there,

      when I start the JBoss AS with my application, I get this error after some minutes.

      15:04:22,046 ERROR [STDERR] Exception in thread "SFSB Passivation Thread - jboss.j2ee:ear=ares.ear,jar=ares.jar,name=SelectOneMenuHelperAction,service=EJB3"
      15:04:22,046 ERROR [STDERR] java.lang.NoClassDefFoundError: javax/portlet/PortletContext
      15:04:22,046 ERROR [STDERR] at java.lang.Class.getDeclaredConstructors0(Native Method)
      15:04:22,046 ERROR [STDERR] at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
      15:04:22,046 ERROR [STDERR] at java.lang.Class.getConstructor0(Class.java:2671)
      15:04:22,046 ERROR [STDERR] at java.lang.Class.getDeclaredConstructor(Class.java:1953)
      15:04:22,046 ERROR [STDERR] at org.jboss.serial.classmetamodel.SunConstructorManager.getConstructor(SunConstructorManager.java:70)
      15:04:22,046 ERROR [STDERR] at org.jboss.serial.classmetamodel.ClassMetaData.findConstructor(ClassMetaData.java:381)
      15:04:22,046 ERROR [STDERR] at org.jboss.serial.classmetamodel.ClassMetaData.<init>(ClassMetaData.java:127)
      15:04:22,046 ERROR [STDERR] at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:335)
      15:04:22,046 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:171)
      15:04:22,046 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202)
      15:04:22,046 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
      15:04:22,062 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.io.MarshalledObject.<init>(MarshalledObject.java:51)
      15:04:22,062 ERROR [STDERR] at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:401)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:275)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:202)
      15:04:22,062 ERROR [STDERR] at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
      15:04:22,062 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
      15:04:22,062 ERROR [STDERR] at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:347)
      15:04:22,062 ERROR [STDERR] at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:194)
      15:04:22,062 ERROR [STDERR] at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:129)


      I found "PortletContext" in the "portlet-api-lib.jar" and put it in my ear file, but this didn't solve the problem.

      i don't know what's wrong. Can anybody help me?

      Regards
      Newlukai