1 Reply Latest reply on May 21, 2008 5:25 PM by Kallol Biswas

    Problem starting application

    Kallol Biswas Newbie

      Hi

      I am using Rich Faces 3.2.0 SR1 with JSF 1.2 and J2EE 5.

      When I start the web app I get the following error : Can somebody help me understand the problem with this....

      -----------------------------------

      May 21, 2008 3:41:16 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
      INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdk1.6.0_04\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\Common Files\Adaptec Shared\System;C:\oracle\bin;C:\oracle\ora92\bin;C:\Program Files\Novell\ZENworks\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\apache-ant-1.7.0\bin;C:\Java\jdk1.6.0_04\bin;C:\Program Files\ArcGIS\java\tools\ant\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\CVSNT\;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\nls;C:\WINDOWS\system32\nls\ENGLISH;C:\Program Files\Common Files\Adaptec Shared\System;C:\oracle\bin;C:\oracle\ora92\bin;C:\Program Files\Novell\ZENworks\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\apache-ant-1.7.0\bin;C:\Java\jdk1.6.0_04\bin;C:\Program Files\ArcGIS\java\tools\ant\bin;C:\Program Files\QuickTime\QTSystem\;C:\PROGRA~1\EXTRA!
      May 21, 2008 3:41:16 PM org.apache.coyote.http11.Http11BaseProtocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8181
      May 21, 2008 3:41:16 PM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 1109 ms
      May 21, 2008 3:41:16 PM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      May 21, 2008 3:41:16 PM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/5.5.26
      May 21, 2008 3:41:16 PM org.apache.catalina.core.StandardHost start
      INFO: XML validation disabled
      - [ComponentRule]{faces-config/component} Merge(javax.faces.ViewRoot)
      - [ManagedBeanRule]{faces-config/managed-bean} Merge(mapContext1)
      - [ManagedBeanRule]{faces-config/managed-bean} Merge(mapContext2)
      - [ManagedBeanRule]{faces-config/managed-bean} Merge(esriWebSession)
      - [ManagedBeanRule]{faces-config/managed-bean} Merge(ags1)
      - [ManagedBeanRule]{faces-config/managed-bean} Merge(ags2)
      - [ManagedBeanRule]{faces-config/managed-bean} Merge(agsUser1)
      - [ManagedBeanRule]{faces-config/managed-bean} Merge(processMapBean)
      - [ManagedBeanRule]{faces-config/managed-bean} Merge(processMapBeanQs)
      - [ManagedBeanRule]{faces-config/managed-bean} Merge(bean)
      - Can't instantiate class: 'org.ajax4jsf.application.AjaxStateManager'.:org.ajax4jsf.application.AjaxStateManager:exception:null
      - Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      java.lang.NoClassDefFoundError: javax/faces/component/ActionSource2
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
      at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1853)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:875)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1330)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
      at java.lang.Class.getConstructor0(Class.java:2699)
      at java.lang.Class.newInstance0(Class.java:326)
      at java.lang.Class.newInstance(Class.java:308)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:876)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:925)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:406)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:328)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:448)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
      Caused by: java.lang.ClassNotFoundException: javax.faces.component.ActionSource2
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
      ... 32 more
      May 21, 2008 3:41:19 PM com.esri.adf.web.util.ADFServletContextListener contextInitialized
      INFO: WebSpatialReference loaded.
      May 21, 2008 3:41:19 PM org.apache.catalina.core.StandardContext start
      SEVERE: Error listenerStart
      May 21, 2008 3:41:19 PM org.apache.catalina.core.StandardContext start
      SEVERE: Context [/rail_hdw] startup failed due to previous errors
      May 21, 2008 3:41:19 PM com.esri.adf.web.util.ADFServletContextListener contextDestroyed
      INFO: Destroying WebApplication...
      May 21, 2008 3:41:19 PM com.esri.adf.web.util.ADFServletContextListener contextDestroyed
      INFO: WebApplication cleanly destroyed.
      May 21, 2008 3:41:20 PM org.apache.coyote.http11.Http11BaseProtocol start
      INFO: Starting Coyote HTTP/1.1 on http-8181
      May 21, 2008 3:41:21 PM org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8119
      May 21, 2008 3:41:21 PM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/203 config=null
      May 21, 2008 3:41:21 PM org.apache.catalina.storeconfig.StoreLoader load
      INFO: Find registry server-registry.xml at classpath resource
      May 21, 2008 3:41:21 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 4985 ms

        • 1. Re: Problem starting application
          Kallol Biswas Newbie

          After some research into this forum I did the following changes and the previous error is gone but I have a new error message as below :

          The changes I have done ---

          1. Replaced commons-collections.jar with commons-collections-3.2.1.jar
          2. Replaced commons-beanutils.jar with latest 3 jars for beanutils
          3. Replaced commons-digester.jar with latest commons-digester-1.8.jar

          Now the new error is :

          - Exception starting filter richfaces

          java.lang.ClassNotFoundException: org.ajax4jsf.Filter
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1363)
          at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1209)
          at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:207)
          at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
          at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:78)
          at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3635)
          at org.apache.catalina.core.StandardContext.start(StandardContext.java:4222)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
          at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
          at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
          at org.apache.catalina.core.StandardService.start(StandardService.java:448)
          at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
          at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
          at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
          May 21, 2008 4:19:05 PM org.apache.catalina.core.StandardContext start
          SEVERE: Error filterStart
          May 21, 2008 4:19:05 PM org.apache.catalina.core.StandardContext start
          SEVERE: Context [/rail_hdw] startup failed due to previous errors
          May 21, 2008 4:19:05 PM com.esri.adf.web.util.ADFServletContextListener contextDestroyed
          INFO: Destroying WebApplication...
          May 21, 2008 4:19:05 PM com.esri.adf.web.util.ADFServletContextListener contextDestroyed
          INFO: WebApplication cleanly destroyed.
          May 21, 2008 4:19:05 PM org.apache.coyote.http11.Http11BaseProtocol start
          INFO: Starting Coyote HTTP/1.1 on http-8181
          May 21, 2008 4:19:05 PM org.apache.jk.common.ChannelSocket init
          INFO: JK: ajp13 listening on /0.0.0.0:8119
          May 21, 2008 4:19:05 PM org.apache.jk.server.JkMain start
          INFO: Jk running ID=0 time=0/47 config=null
          May 21, 2008 4:19:05 PM org.apache.catalina.storeconfig.StoreLoader load
          INFO: Find registry server-registry.xml at classpath resource
          May 21, 2008 4:19:05 PM org.apache.catalina.startup.Catalina start
          INFO: Server startup in 3032 ms