5 Replies Latest reply on Aug 30, 2007 9:38 AM by moldovan

    Howto config Richfaces 3.1.0-rc3

    Fabio Cavalcanti Newbie

      Hello,

      I´m trying to upgrade my system from richfaces 3.0.2 to 3.1.0-rc3 but when I try to deploy I get an error. Do I need any new configuration on faces-config or web.xml and some other upgrade in other libs?
      I´m using Tomcat 5.5 and myfaces 1.5.

      thanks

        • 1. Re: Howto config Richfaces 3.1.0-rc3
          Sergey Smirnov Master

          It depends of the error you get. I hope, you have no any ajax4jsf jar in the path.

          • 2. Re: Howto config Richfaces 3.1.0-rc3
            Fabio Cavalcanti Newbie

            I forgot to say that I already had a4j upgraded . The error i got:

            javax.faces.FacesException: java.lang.reflect.InvocationTargetException
             at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:161)
             at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:110)
             at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(Faces
            Configurator.java:735)
             at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurat
            or.java:149)
             at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(Sta
            rtupServletContextListener.java:68)
             at org.apache.myfaces.webapp.StartupServletContextListener.contextInitia
            lized(StartupServletContextListener.java:51)
             at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
            t.java:3827)
             at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
            336)
             at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
            .java:761)
             at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:74
            1)
             at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
            
             at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
            
             at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714
            )
             at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490
            )
             at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
             at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
            :311)
             at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
            eSupport.java:120)
             at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
            
             at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
             at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
            
             at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
            )
             at org.apache.catalina.core.StandardService.start(StandardService.java:4
            48)
             at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
            )
             at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
            java:39)
             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
            sorImpl.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(NativeConstruct
            orAccessorImpl.java:39)
             at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
            onstructorAccessorImpl.java:27)
             at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
             at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:152)
             ... 29 more
            Caused by: javax.faces.FacesException: java.lang.IllegalArgumentException: argum
            ent type mismatch
             at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig(Re
            sourceBuilderImpl.java:193)
             at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerResources
            (ResourceBuilderImpl.java:131)
             at org.ajax4jsf.framework.resource.ResourceBuilderImpl.init(ResourceBuil
            derImpl.java:202)
             at org.ajax4jsf.framework.renderer.ChameleonRenderKitFactory.<init>(Cham
            eleonRenderKitFactory.java:62)
             ... 34 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.endEleme
            nt(AbstractSAXParser.java:633)
             at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
            l.scanEndElement(XMLDocumentFragmentScannerImpl.java:1241)
             at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
            l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
             at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
            l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
             at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
            ML11Configuration.java:834)
             at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
            ML11Configuration.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(Ab
            stractSAXParser.java:1242)
             at org.apache.commons.digester.Digester.parse(Digester.java:1765)
             at org.ajax4jsf.framework.resource.ResourceBuilderImpl.registerConfig(Re
            sourceBuilderImpl.java:186)
             ... 37 more


            • 3. Re: Howto config Richfaces 3.1.0-rc3
              Sergey Smirnov Master

              what does it mean "I already had a4j upgraded"?

              • 4. Re: Howto config Richfaces 3.1.0-rc3
                Fabio Cavalcanti Newbie

                Sorry, i wrote wrong.
                I´m trying to use this libraries:
                ajax4jsf-1.1.2
                richfaces-api-3.1.0-rc3
                richfaces-impl-3.1.0-rc3
                richfaces-ui-3.1.0-rc3

                • 5. Re: Howto config Richfaces 3.1.0-rc3
                  moldovan Newbie

                  Hy!

                  In the new Richfaces-version (3.1.0-RC...) a4j is coming with richfaces! The projects have been putted together.

                  so, remove the a4j-libs

                  For Information, read this important topic:
                  http://jboss.com/index.html?module=bb&op=viewtopic&t=112220