1 Reply Latest reply on Mar 11, 2008 11:53 AM by Tom Rutsaert

    Conflict bet. JSF 1.1.5 and RF 3.1.4.GA

    Kto ToTaki Newbie

      Hi
      I've got a conflict between JSF 1.1.5 and RF 3.1.4.GA

      Web.xml includes :
      <!-- Extensions Filter : Filter mapping for chameleon filter ajax4jsf do not contain wilcard prefix or suffix -->
      <context-param>
      <param-name>org.richfaces.SKIN</param-name>
      <param-value>blueSky</param-value>
      </context-param>

      <display-name>RichFaces Filter</display-name>
      <filter-name>richfaces</filter-name>
      <filter-class>org.ajax4jsf.Filter</filter-class>

      <filter-mapping>
      <filter-name>richfaces</filter-name>
      <servlet-name>Faces Servlet</servlet-name>
      REQUEST
      FORWARD
      INCLUDE
      </filter-mapping>

      <!-- Tomahawk : ExtensionsFilter ....-->

      <!-- JSF servlet -->

      <display-name>Faces Servlet</display-name>
      <servlet-name>Faces Servlet</servlet-name>
      <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
      <init-param>
      <param-name>debug_mode</param-name>
      <param-value>true</param-value>
      </init-param>
      <load-on-startup>1</load-on-startup>

      <servlet-mapping>
      <servlet-name>Faces Servlet</servlet-name>
      <url-pattern>*.faces</url-pattern>
      </servlet-mapping>

      <servlet-mapping>
      <servlet-name>jsp</servlet-name>
      <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>



      Starting server with this config gives :
      INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
      2008-03-11 15:12:55,929 [main] INFO config.FacesConfigurator - Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
      2008-03-11 15:12:55,976 [main] INFO config.FacesConfigurator - Reading config jar:file:/C:/Java/NE/ProductCatalogAdmin/target/ProductCatalogAdmin/WEB-INF/lib/ajax4jsf-1.1.1.jar!/META-INF/faces-config.xml
      2008-03-11 15:12:55,992 [main] INFO config.FacesConfigurator - Reading config jar:file:/C:/Java/NE/ProductCatalogAdmin/target/ProductCatalogAdmin/WEB-INF/lib/richfaces-3.0.1.jar!/META-INF/faces-config.xml
      2008-03-11 15:12:56,007 [main] INFO config.FacesConfigurator - Reading config jar:file:/C:/Java/NE/ProductCatalogAdmin/target/ProductCatalogAdmin/WEB-INF/lib/richfaces-impl-3.1.4.GA.jar!/META-INF/faces-config.xml
      2008-03-11 15:12:56,007 [main] INFO config.FacesConfigurator - Reading config jar:file:/C:/Java/NE/ProductCatalogAdmin/target/ProductCatalogAdmin/WEB-INF/lib/richfaces-ui-3.1.4.GA.jar!/META-INF/faces-config.xml
      2008-03-11 15:12:56,023 [main] INFO config.FacesConfigurator - Reading config jar:file:/C:/Java/NE/ProductCatalogAdmin/target/ProductCatalogAdmin/WEB-INF/lib/tomahawk-1.1.6.jar!/META-INF/faces-config.xml
      2008-03-11 15:12:56,039 [main] INFO config.FacesConfigurator - Reading config /WEB-INF/faces-config.xml
      2008-03-11 15:12:56,054 [main] INFO config.FacesConfigurator - Starting up MyFaces-package : myfaces-api in version : 1.1.5 from path : file:/C:/Java/NE/ProductCatalogAdmin/target/ProductCatalogAdmin/WEB-INF/lib/myfaces-api-1.1.5.jar
      2008-03-11 15:12:56,054 [main] INFO config.FacesConfigurator - Starting up MyFaces-package : myfaces-impl in version : 1.1.5 from path : file:/C:/Java/NE/ProductCatalogAdmin/target/ProductCatalogAdmin/WEB-INF/lib/myfaces-impl-1.1.5.jar
      2008-03-11 15:12:56,054 [main] INFO config.FacesConfigurator - MyFaces-package : tomahawk-sandbox not found.
      2008-03-11 15:12:56,054 [main] INFO config.FacesConfigurator - Starting up MyFaces-package : tomahawk in version : 1.1.6 from path : file:/C:/Java/NE/ProductCatalogAdmin/target/ProductCatalogAdmin/WEB-INF/lib/tomahawk-1.1.6.jar
      2008-03-11 15:12:56,507 [main] ERROR digester.Digester - End event threw exception
      java.lang.IllegalArgumentException: java.lang.ClassCastException@88df60
      at sun.reflect.GeneratedMethodAccessor27.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:208)
      at org.apache.commons.digester.Rule.end(Rule.java:228)
      at org.apache.commons.digester.Digester.endElement(Digester.java:1067)
      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:1591)
      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.(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.newFactoryInstance(FactoryFinder.java:152)
      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:110)
      at org.apache.myfaces.config.FacesConfigurator.configureRenderKits(FacesConfigurator.java:735)
      at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:149)
      at org.apache.myfaces.webapp.StartupServletContextListener.initFaces(StartupServletContextListener.java:68)
      at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:51)
      at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
      at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
      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:578)
      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)
      2008-03-11 15:12:56,507 [main] ERROR webapp.StartupServletContextListener - Error initializing ServletContext
      javax.faces.FacesException: java.lang.reflect.InvocationTargetException
      at javax.faces.FactoryFinder.newFactoryInstance(FactoryFinder.java:161)


      What is wrong here ?

      Regards
      Mirek