RichFaces with JSF RI 1.1
sy62k Mar 17, 2008 6:11 PMHi,
I have a web application thats running on JBoss 4.0.5. I wanted to integrate RichFaces libraries and added them to WEB-INF/lib and the build path in Eclipse and did a build and deployed. This is before modifying web.xml to include the richfaces filters. When I try to login on my app it throws the following exception:
java.lang.ClassCastException: java.lang.Boolean javax.faces.component.html.HtmlGraphicImage.restoreState(HtmlGraphicImage.java:665) javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1007) javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1019) org.ajax4jsf.application.AjaxStateManager.restoreView(AjaxStateManager.java:246) com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:228) org.ajax4jsf.application.ViewHandlerWrapper.restoreView(ViewHandlerWrapper.java:116) org.ajax4jsf.application.AjaxViewHandler.restoreView(AjaxViewHandler.java:159) com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90) javax.faces.webapp.FacesServlet.service(FacesServlet.java:197) org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) com.company.miscellaneous.SecurityFilter.doFilter(SecurityFilter.java:35) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
I added the following entries to the deployment descriptor:
<context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>blueSky</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>
It's throwing the same exception.
Any help is appreciated,
Thanks,
-H