Problems with upgrading to a newer Richfaces version
moroczt Jan 23, 2008 11:21 AMHello!
I have the folllowing (strange?) problem:
We develope a web application for 3 years,
used components:
Tomcat 5.5.23, JSF 1.1, RichFaces 3.0.1,Tiles, Tomahawk.
Everything worked correctly so far.
I would like to use rich:tooltip, and I realized that this component was
develpoed later (in another project we use it with Richfaces 3.1.2, Faclets)
so I decided to ugrade to Richfaces 3.1.2.
I thought that only replacing the old ajax4jsf.jar and richfaces.jar with the new 3 richfaces-x.jar would be enough.
After restarting the webb app ( and later restarting the whole Tomcat )
and aftter navigating away from the first jsf page to any other jsf page I got this exception:
java.lang.ClassCastException: [Ljava.lang.Object;
javax.faces.component.UIComponentBase.restoreState(UIComponentBase.java:1114)
javax.faces.component.UIOutput.restoreState(UIOutput.java:179)
javax.faces.component.html.HtmlOutputText.restoreState(HtmlOutputText.java:174)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1007)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1019)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1019)
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.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:307)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
com.weblib.ui.servlets.filters.SecurityCheckFilter.doFilter(SecurityCheckFilter.java:87)
I checked everything in web.xml and faces-config.xml,
even tried some slight changes but the same error occuers always.
I tried the latest 3.1.3 version too. No avail.
(Downgrading to older version stops this error,everything goes fine.)
I do not have any idea what to do now.
Please help me with some pieces of advice!
Thanx in advance.