5 Replies Latest reply on Dec 10, 2007 11:10 AM by Florian Marwede

    Error at startup

    Monique Monteiro Newbie

      Hi all,

      I'm trying to integrate RichFaces to my existing application and I get the following error at startup:

      javax.faces.FacesException: org.ajax4jsf.framework.renderer.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:1036)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:493)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      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:566)
      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)
      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:494)
      at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:549)
      ... 20 more
      Caused by: javax.faces.FacesException: java.lang.IllegalArgumentException: argument type mismatch
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:193)
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerResources(ResourceBuilderImpl.java:131)
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.init(ResourceBuilderImpl.java:202)
      at org.ajax4jsf.framework.renderer.ChameleonRenderKitFactory.(ChameleonRenderKitFactory.java:62)
      ... 25 more
      Caused by: java.lang.IllegalArgumentException: argument type mismatch
      at org.apache.commons.digester.Digester.createSAXException(Digester.java:2792)
      at org.apache.commons.digester.Digester.createSAXException(Digester.java:2818)
      at org.apache.commons.digester.Digester.endElement(Digester.java:1070)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
      at org.apache.commons.digester.Digester.parse(Digester.java:1591)
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:186)
      ... 28 more
      10/12/2007 10:38:35 org.apache.catalina.core.StandardContext listenerStart
      SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      javax.faces.FacesException: org.ajax4jsf.framework.renderer.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:1036)
      at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:493)
      at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:381)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
      at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
      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:566)
      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)
      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:494)
      at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:549)
      ... 20 more
      Caused by: javax.faces.FacesException: java.lang.IllegalArgumentException: argument type mismatch
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:193)
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerResources(ResourceBuilderImpl.java:131)
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.init(ResourceBuilderImpl.java:202)
      at org.ajax4jsf.framework.renderer.ChameleonRenderKitFactory.(ChameleonRenderKitFactory.java:62)
      ... 25 more
      Caused by: java.lang.IllegalArgumentException: argument type mismatch
      at org.apache.commons.digester.Digester.createSAXException(Digester.java:2792)
      at org.apache.commons.digester.Digester.createSAXException(Digester.java:2818)
      at org.apache.commons.digester.Digester.endElement(Digester.java:1070)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:633)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1242)
      at org.apache.commons.digester.Digester.parse(Digester.java:1591)
      at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:186)
      ... 28 more

      Does anyone has any idea about what may be happening? I'm using JSF RI 1.2 and Tomcat 6. My RichFaces version is 3.1.1.

      Thanks in advance,

      Monique