5 Replies Latest reply on Jan 28, 2009 7:45 AM by Ilya Shaikovsky

    Exception while switching from 3.1.4 to 3.3.0

    Stefan Junghans Newbie

      Hi there,

      i have a question...

      I delevlop a web application on two different computer, my Notebook and a normal Computer, both with Windows XP.
      The last few weeks i used richfaces 3.1.4 jars. Now i switched to the 3.3.0 jars.

      The Tomcat on my Notebook runs fine with the new jars.
      But my Tomcat on the computer doesnt't start anymore because of the following exception.

      Can somebody help me??

      (I use JDK 1.6.0.10, Java EE 5 libraries, Tomcat 6.0.16, IDE MyEclipse 7.0)


      SCHWERWIEGEND: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      javax.faces.FacesException: org.ajax4jsf.renderkit.ChameleonRenderKitFactory
      at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:556)
      at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:448)
      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:249)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1096)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:543)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:436)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
      at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
      at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
      at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
      at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
      at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
      at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
      at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
      at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
      at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
      at org.apache.catalina.core.StandardService.start(StandardService.java:516)
      at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
      at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
      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:288)
      at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      Caused by: java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:549)
      ... 29 more
      Caused by: java.lang.NullPointerException
      at org.apache.commons.digester.Digester.getXMLReader(Digester.java:1058)
      at org.apache.commons.digester.Digester.parse(Digester.java:1887)
      at org.ajax4jsf.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:199)
      at org.ajax4jsf.resource.ResourceBuilderImpl.registerResources(ResourceBuilderImpl.java:143)
      at org.ajax4jsf.resource.ResourceBuilderImpl.init(ResourceBuilderImpl.java:214)
      at org.ajax4jsf.renderkit.ChameleonRenderKitFactory.(ChameleonRenderKitFactory.java:62)
      ... 34 more

        • 1. Re: Exception while switching from 3.1.4 to 3.3.0
          Ilya Shaikovsky Master

          show please jars list from you classpath.

          • 2. Re: Exception while switching from 3.1.4 to 3.3.0
            Stefan Junghans Newbie

            My classpath file:


             <classpathentry kind="src" path="main/src/java"/>
             <classpathentry kind="src" path="main/test/java"/>
             <classpathentry kind="con" path="melibrary.com.genuitec.eclipse.hibernate.MYECLIPSE_HIBERNATE3_2_EM"/>
             <classpathentry kind="con" path="melibrary.com.genuitec.eclipse.hibernate.MYECLIPSE_HIBERNATE3_2_CORE"/>
             <classpathentry kind="con" path="melibrary.com.genuitec.eclipse.jsf.MYECLIPSE_FACELETS1"/>
             <classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/>
             <classpathentry kind="lib" path="D:/junit3.8.1/junit.jar"/>
             <classpathentry kind="lib" path="D:/libs/log4j-1.2.15.jar"/>
             <classpathentry kind="lib" path="D:/libs/mysql-connector-java-5.1.7-bin.jar"/>
             <classpathentry kind="var" path="MYECLIPSE_SPRING_DATA_HOME/2.5/dist/modules/spring-jdbc.jar"/>
             <classpathentry kind="var" path="MYECLIPSE_SPRING_DATA_HOME/2.5/dist/modules/spring-web.jar"/>
             <classpathentry kind="var" path="MYECLIPSE_SPRING_DATA_HOME/2.5/dist/modules/spring-orm.jar"/>
             <classpathentry kind="var" path="MYECLIPSE_SPRING_DATA_HOME/2.5/dist/modules/spring-tx.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-beanutils-bean-collections-1.8.0.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-beanutils-core-1.8.0.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-collections-3.2.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-el.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-lang-2.3.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-validator-1.3.1.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-beanutils-1.8.0.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-logging-1.1.1.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-math-1.2.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-discovery-0.4.jar"/>
             <classpathentry kind="lib" path="D:/libs/commons-digester-2.0.jar"/>
             <classpathentry kind="lib" path="D:/libs/jstl-1.2.jar"/>
             <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_10"/>
             <classpathentry kind="con" path="melibrary.com.genuitec.eclipse.springframework.MYECLIPSE_SPRING25_CORE"/>
             <classpathentry kind="lib" path="D:/libs/richfaces-ui-3.3.0.GA.jar"/>
             <classpathentry kind="lib" path="D:/libs/richfaces-api-3.3.0.GA.jar"/>
             <classpathentry kind="lib" path="D:/libs/richfaces-impl-3.3.0.GA.jar"/>
             <classpathentry kind="output" path="web/WEB-INF/classes"/>
            


            • 3. Re: Exception while switching from 3.1.4 to 3.3.0
              Ilya Shaikovsky Master

              we've used commons-digester 1.8 in our applications. I'll check with 2.0 now and update you.

              • 4. Re: Exception while switching from 3.1.4 to 3.3.0
                Stefan Junghans Newbie

                Yeah! That's it! You're right...

                With Digester 1.8 it works!

                Thanks for your help!