ClassCastException « IceFaces « JSF Q&A





1. ClassCastException or double vision with MyFaces    icefaces.org

I have an application using MyFaces 1.1.3 (and facelets) and I thought I would have a look at the Direct To DOM render kit. I dropped the icefaces jars into the libs directory, added the web.xml entries and re-ran my app. Kaboom! java.lang.ClassCastException: org.apache.myfaces.context.servlet.ServletFacesContextImpl at com.icesoft.faces.renderkit.dom_html_basic.FormRenderer.encodeBegin(Unknown Source) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:512) at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:555) at com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.java:562) at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:457) at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) ...

2. SelectInputDate throws ClassCastException    icefaces.org

I got an problem with an selectInputDate. Its rendered as an Popup.... so when i type something not specific (e.g. abc )in the textarea and click on the icon to render the calendar, an facesMessage appears (default facesmessages), which is fine. When I click an second time on the icon, i get an exception : java.lang.ClassCastException: java.lang.String cannot be cast to ...

9. ClassCastException running ICEFaces 1.7.1 in WAS 6.1 + RAD 7.5    icefaces.org

I successfully installed ICEfaces Project integration for Eclipse 3.4 in RAD 7.5 and created a very simple jspx page but when I try to run it I got a classcast Exception. I'm using WAS 6.1 in windows. Looking at the stacktrace below, I'm under the impression is still using part of the IBM JSF stack even when it was configured as ...