0 Replies Latest reply on Dec 8, 2011 2:48 AM by lei wang

    project with JSF/Myfaces/spring ,Cant install richfaces

    lei wang Newbie

      Hi ,I have an existing project with JSF/Myfaces 1.2.10/spring and hopefully I can ajax functions in it.

      But I can't seem to get it right. If I add rf 3.3.3(richfaces-api-3.3.3.Final.jar/richfaces-impl-3.3.3.Final.jar/richfaces-impl-jsf2-3.3.3.Final.jar/richfaces-ui-3.3.3.Final.jar),I get this error:

      2011-12-08 09:18:44[DEBUG](ResourceBuilderImpl.java:141) Process resources configuration file jar:file:/E:/newwork/dev/mysurvey/src/build/web/WEB-INF/lib/richfaces-impl-3.3.3.Final.jar!/META-INF/resources-config.xml

      2011-12-08 09:18:44[DEBUG](InternetResourceBuilder.java:187) Return instance of internet resource builder org.ajax4jsf.resource.ResourceBuilderImpl@ca06d9

      2011-12-08 09:18:44[DEBUG](AjaxScript.java:45) AjaxScript() - Created instance of AjaxScript resource

      2011-12-08 09:18:44[ERROR](Digester.java:1224) End event threw exception

      java.lang.IllegalArgumentException: argument type mismatch

          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.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:282)

          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(AbstractSAXParser.java:601)

          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1772)

          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2923)

          at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:645)

          at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:508)

          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)

          at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)

          at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)

          at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)

          at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522)

          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(NativeConstructorAccessorImpl.java:39)

          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

          at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:181)

          at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:136)

          at org.apache.myfaces.context.servlet.FacesContextImpl.<init>(FacesContextImpl.java:120)

          at org.apache.myfaces.context.servlet.FacesContextImpl.<init>(FacesContextImpl.java:110)

          at org.apache.myfaces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:126)

          at javax.faces.webapp.FacesServlet.prepareFacesContext(FacesServlet.java:347)

          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:180)

          at org.apache.myfaces.webapp.MyFacesServlet.service(MyFacesServlet.java:122)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:293)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:127)

          at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:277)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)

          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)

          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)

          at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:706)

          at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:677)

          at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)

          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at com.ccb.ha.common.web.filter.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:49)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

          at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

          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:191)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          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:298)

          at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)

          at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)

          at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)

          at java.lang.Thread.run(Thread.java:619)