1 Reply Latest reply on Jun 13, 2007 3:18 AM by Karl Wyer

    RichFaces and Ajax4JSF incompatible jar versions

    J. Scott Franko Newbie

      When I try to run an a war file that uses ajax4jsf 1.1.1 and richfaces 3.0.1 and oscache 2.3, in Tomcat 6 from MyEclipse, I get the following. Any idea why I get the null pointer errors?


      Jun 12, 2007 5:42:38 PM org.apache.catalina.core.AprLifecycleListener init
      INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_11\bin;C:\jsfranko\MyDevTools\Apache Software Foundation\apache-tomcat-6.0.10\bin
      Jun 12, 2007 5:42:38 PM org.apache.coyote.http11.Http11Protocol init
      INFO: Initializing Coyote HTTP/1.1 on http-8080
      Jun 12, 2007 5:42:38 PM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 1547 ms
      Jun 12, 2007 5:42:39 PM org.apache.catalina.core.StandardService start
      INFO: Starting service Catalina
      Jun 12, 2007 5:42:39 PM org.apache.catalina.core.StandardEngine start
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.10
      Jun 12, 2007 5:42:39 PM org.apache.catalina.startup.HostConfig deployWAR
      INFO: Deploying web application archive KOPrototype.war
      Jun 12, 2007 5:42:39 PM org.ajax4jsf.cache.CacheManager getCacheFactory
      INFO: Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
      Jun 12, 2007 5:42:39 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
      INFO: Creating LRUMap cache instance using parameters: {org.ajax4jsf.SKIN=blueSky, javax.faces.CONFIG_FILES=/WEB-INF/faces-config.xml}
      Jun 12, 2007 5:42:39 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
      INFO: Creating LRUMap cache instance of default capacity
      Jun 12, 2007 5:42:40 PM org.ajax4jsf.cache.CacheManager getCacheFactory
      INFO: Selected [org.ajax4jsf.cache.LRUMapCacheFactory] cache factory
      Jun 12, 2007 5:42:40 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
      INFO: Creating LRUMap cache instance using parameters: {org.ajax4jsf.SKIN=blueSky, javax.faces.CONFIG_FILES=/WEB-INF/faces-config.xml}
      Jun 12, 2007 5:42:40 PM org.ajax4jsf.cache.LRUMapCacheFactory createCache
      INFO: Creating LRUMap cache instance of default capacity
      Jun 12, 2007 5:42:40 PM org.apache.catalina.core.ApplicationContext log
      SEVERE: StandardWrapper.Throwable
      java.lang.NullPointerException
      at javax.faces.webapp.FacesServlet.init(FacesServlet.java:165)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
      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:710)
      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:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Jun 12, 2007 5:42:40 PM org.apache.catalina.core.StandardContext loadOnStartup
      SEVERE: Servlet /KOPrototype threw load() exception
      java.lang.NullPointerException
      at javax.faces.webapp.FacesServlet.init(FacesServlet.java:165)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
      at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
      at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
      at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
      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:710)
      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:585)
      at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Jun 12, 2007 5:42:40 PM org.apache.catalina.core.ApplicationContext log
      INFO: ContextListener: contextInitialized()
      Jun 12, 2007 5:42:41 PM org.apache.catalina.core.ApplicationContext log
      INFO: SessionListener: contextInitialized()
      Jun 12, 2007 5:42:41 PM org.apache.coyote.http11.Http11Protocol start
      INFO: Starting Coyote HTTP/1.1 on http-8080
      Jun 12, 2007 5:42:41 PM org.apache.jk.common.ChannelSocket init
      INFO: JK: ajp13 listening on /0.0.0.0:8009
      Jun 12, 2007 5:42:41 PM org.apache.jk.server.JkMain start
      INFO: Jk running ID=0 time=0/62 config=null
      Jun 12, 2007 5:42:41 PM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 2562 ms