0 Replies Latest reply on Apr 17, 2008 6:34 AM by Luis Miguel Rodriguez

    Problems setting up RichFaces 3.2.0 with Tomcat 6 and JSF 1.

    Luis Miguel Rodriguez Newbie

      Hi,

      using the configuration specified on the topic, I'm getting the following error when try to start my webapp up:

      INFO: Initializing Sun's JavaServer Faces implementation (1.2_03-b09-FCS) for context '/sentinel-business'
      17-Apr-2008 10:18:13 com.sun.faces.spi.InjectionProviderFactory createInstance
      WARNING: JSF1033: Resource injection is DISABLED.
      java.lang.ClassCastException: $Proxy0
       at org.jboss.lang.AnnotationHelper.convertAnnotationArray(AnnotationHelper.java:632)
       at org.jboss.lang.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:392)
       at com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1137)
       at com.sun.faces.config.ManagedBeanFactoryImpl.<init>(ManagedBeanFactoryImpl.java:153)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:976)
       at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:546)
       at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:438)
       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(NativeMethodAccessorImpl.java:39)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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)
      


      No other information is provided. I have in my WEB-INF/lib all the jsf/richfaces jars. My web.xml is:

       <context-param>
       <param-name>contextConfigLocation</param-name>
       <param-value>/WEB-INF/applicationContext.xml</param-value>
       </context-param> -->
      
       <context-param>
       <param-name>org.richfaces.SKIN</param-name>
       <param-value>classic</param-value>
       </context-param>
       <context-param>
       <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
       <param-value>com.sun.facelets.FaceletViewHandler</param-value>
       </context-param>
       <filter>
       <display-name>RichFaces Filter</display-name>
       <filter-name>richfaces</filter-name>
       <filter-class>org.ajax4jsf.Filter</filter-class>
       </filter>
       <filter-mapping>
       <filter-name>richfaces</filter-name>
       <servlet-name>Faces Servlet</servlet-name>
       <dispatcher>REQUEST</dispatcher>
       <dispatcher>FORWARD</dispatcher>
       <dispatcher>INCLUDE</dispatcher>
       </filter-mapping>
      


      Any thoughs?

      Cheers