0 Replies Latest reply on Dec 28, 2007 5:10 AM by a a

    how to properly setup for richfaces ?

    a a Newbie

      Hi,

      I tried to see if I can integrate richfaces into my existing apps but can't even have it loaded. The following is the steps.

      Server: tomcat 6.0.14
      IDE: Eclipse

      I just dropped the 3 jars from richfaces 3.1.3 into WEB-INF/lib and redeploy the project and got the error(end of post).

      Since it refers to SAX, I am assuming that is related to some configuration error but where and what, I have no idea.

      The setup(the existing project) was running fine with ajax4jsf 1.1.1, facelets 1.1.13 and sun's RI 1.2 JSF.

      What should I check ?

      28-Dec-2007 6:03:18 PM com.sun.faces.config.ConfigureListener contextInitialized
      INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b07-FCS) for context '/springjsf'
      ERROR [main] Digester.endElement(1224) | End event threw exception
      java.lang.IllegalArgumentException: argument type mismatch
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)
       at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:217)
       at org.apache.commons.digester.Rule.end(Rule.java:253)
       at org.apache.commons.digester.Digester.endElement(Digester.java:1222)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.apache.commons.digester.Digester.parse(Digester.java:1765)
       at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:186)
       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.<init>(ChameleonRenderKitFactory.java:62)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       at javax.faces.FactoryFinder.getImplGivenPreviousImpl(FactoryFinder.java:549)
       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: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(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
      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: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: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(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       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(Unknown Source)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       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.<init>(ChameleonRenderKitFactory.java:62)
       ... 25 more
      Caused by: java.lang.IllegalArgumentException: argument type mismatch
       at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
       at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
       at org.apache.commons.digester.Digester.endElement(Digester.java:1225)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.apache.commons.digester.Digester.parse(Digester.java:1765)
       at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:186)
       ... 28 more
      28-Dec-2007 6:03:21 PM 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: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: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(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       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(Unknown Source)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
       at java.lang.reflect.Constructor.newInstance(Unknown Source)
       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.<init>(ChameleonRenderKitFactory.java:62)
       ... 25 more
      Caused by: java.lang.IllegalArgumentException: argument type mismatch
       at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181)
       at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207)
       at org.apache.commons.digester.Digester.endElement(Digester.java:1225)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
       at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
       at org.apache.commons.digester.Digester.parse(Digester.java:1765)
       at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig(ResourceBuilderImpl.java:186)
       ... 28 more