3 Replies Latest reply on Feb 22, 2009 1:40 AM by Phil Wilson

    ClassNotFoundException: org.ajax4jsf.application.AjaxStateHo

    Phil Wilson Apprentice

      Hi guys,

      I am getting this error..anyone know why?

      
      Feb 21, 2009 7:26:57 PM org.apache.catalina.session.StoreBase processExpires
      SEVERE: Session: B57C940A52FAE3C706438613AE5E8096.tomcat2;
      java.lang.ClassNotFoundException: org.ajax4jsf.application.AjaxStateHolder
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
       at java.lang.Class.forName0(Native Method)
       at java.lang.Class.forName(Class.java:247)
       at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604)
       at org.apache.catalina.util.CustomObjectInputStream.resolveClass(CustomObjectInputStream.java:78)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
       at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1441)
       at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:942)
       at org.apache.catalina.session.FileStore.load(FileStore.java:296)
       at org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:195)
       at org.apache.catalina.session.PersistentManagerBase.processExpires(PersistentManagerBase.java:553)
       at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:667)
       at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1316)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
       at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
       at java.lang.Thread.run(Thread.java:619)



        • 1. Re: ClassNotFoundException: org.ajax4jsf.application.AjaxSta
          Phil Wilson Apprentice

          I found it in richfaces-impl-3.2.0.GA.jar...

          When I try to do a tomcat save state...it tosses an exception..

          <Manager className="org.apache.catalina.session.PersistentManager"
           debug="10"
           checkInterval="1"
           saveOnRestart="true"
           maxActiveSessions="-1"
           minIdleSwap="-1"
           maxIdleSwap="0"
           maxIdleBackup="0">
          
           <Store className="org.apache.catalina.session.FileStore"
           directory="/opt/tomcat-sessions"/>
          
           </Manager>


          • 2. Re: ClassNotFoundException: org.ajax4jsf.application.AjaxSta
            Phil Wilson Apprentice

            I found it in richfaces-impl-3.3.0.GA.jar...

            I put it in

            tomcat2:/opt/apache-tomcat-6.0.18/lib# ls
            annotations-api.jar catalina-tribes.jar jasper-jdt.jar servlet-api.jar tomcat-i18n-fr.jar
            catalina-ant.jar el-api.jar jsp-api.jar tomcat-coyote.jar tomcat-i18n-ja.jar
            catalina-ha.jar jasper-el.jar ojdbc14.jar tomcat-dbcp.jar
            catalina.jar jasper.jar richfaces-impl-3.3.0.GA.jar tomcat-i18n-es.jar


            When I try to do a tomcat save state...it tosses an exception..

            Feb 21, 2009 11:01:42 PM org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildren
            SEVERE: Exception invoking periodic operation:
            java.lang.NoClassDefFoundError: org/ajax4jsf/application/StateHolder
             at java.lang.ClassLoader.defineClass1(Native Method)
             at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
             at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
             at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
             at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
             at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
             at java.security.AccessController.doPrivileged(Native Method)


            I think I found that errror...

            SEVERE: Exception invoking periodic operation:
            java.lang.NoClassDefFoundError: org/ajax4jsf/application/StateHolder

            it is in another jar...richfaces-api-3.3.0.GA.jar

            I will put that in the tc/lib now and test..



            I found the issues...I had different version of richfaces jar up there....I grabbed the new one and mixed the one I have in my war...

            Works now...

            tomcat2:/opt# cd tomcatsessions/
            tomcat2:/opt/tomcatsessions# ls
            4DBA3512951990BB1ACC31FC7048002E.tomcat2.session AE8B2E4BD8026CF1465D3FD1B50B26FF.tomcat2.session
            tomcat2:/opt/tomcatsessions#


            Thanks..

            Phil