1 Reply Latest reply on Nov 11, 2007 7:34 AM by Florian Marwede

    JSF with RichFaces and Ajax4jsf

    Marcus Wejderot Newbie

      Hi,

      I'm trying to learn JSF with RichFaces and Ajax4jsf. For some reason, when adding RichFaces 3.1.2 GA and Ajax4jsf 1.1.1 the server won't start and I get the following exeption in the log. In ResourceBuilderImpl the file META-INF/resources-config.xml is accessed. I don't have such a file but don't think I must.

      Does anyone know what could be the reason for this? Any help is appreciated!

      Cheers,
      Marcus

      ALLVARLIG: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
      com.sun.faces.config.ConfigurationException: CONFIGURATION FAILED! Error at line 3 char 59: java.lang.IllegalArgumentException: argument typ
      e mismatch
       at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:212)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:174)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
       at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1237)
       at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:591)
       at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:128)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       at java.lang.Thread.run(Unknown Source)
      Caused by: javax.faces.FacesException: 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.startElement(Digester.java:1456)
       at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
       at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(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.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.<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:560)
       at javax.faces.FactoryFinder.getImplementationInstance(FactoryFinder.java:459)
       at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:260)
       at com.sun.faces.config.processor.FactoryConfigProcessor.verifyFactoriesExist(FactoryConfigProcessor.java:186)
       at com.sun.faces.config.processor.FactoryConfigProcessor.process(FactoryConfigProcessor.java:131)
       at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:202)
       ... 21 more