voyent
Messages posted by: KevinVinsen  XML
Profile for KevinVinsen -> Messages posted by KevinVinsen [5]
Author Message
I haven't got to creating any IceFaces pages yet. I wanted to keep the existing stuff working until I can get the time to migrate it.
Sorry - I didn't explain myself very well.

I'm using the tutorial as a guide to migrate my code. Literally all I did (so far) was tell netbean to add the Visual IceFaces stuff reset the welcome page to be my one - compile it and deploy it. When I try to access a page I get the exception

I haven't even got to the "fun" part.

The servlet mappings look good to me:
Code:
     <servlet-mapping>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <url-pattern>/xmlhttp/*</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <url-pattern>*.iface</url-pattern>
     </servlet-mapping>
     <servlet-mapping>
         <servlet-name>Persistent Faces Servlet</servlet-name>
         <url-pattern>*.jspx</url-pattern>
     </servlet-mapping>
 
I even found some code that might be causing the problem:
http://sventon.icefaces.org/svn/showfile.svn?name=repo&revision=16977&path=/icefaces/branches/icefaces-1.7/icefaces/core/src/com/icesoft/faces/context/DOMResponseWriter.java


105: public DOMResponseWriter(FacesContext context, DOMSerializer serializer, Configuration configuration, Collection jsCode, Collection cssCode) {
106: this.serializer = serializer;
107: this.configuration = configuration;
108: this.jsCode = jsCode;
109: this.cssCode = cssCode;
110: try {
111: this.context = (BridgeFacesContext) context;
112: } catch (ClassCastException e) {
113: throw new IllegalStateException(
114: "ICEfaces requires the PersistentFacesServlet. " +
115: "Please check your web.xml servlet mappings");
116: }
117: boolean streamWritingParam = configuration.getAttributeAsBoolean("streamWriting", false);
118: isStreamWritingFlag = Beans.isDesignTime() || streamWritingParam;
119: }

 
That's exactly what I did. Just like it says here:
http://facestutorials.icefaces.org/tutorial/woodstock/PortingGuidePart1.html

But it didn't work
I've got a woodstock project which I want to convert to IceFaces as Sun are EOLing Woodstock. I've downloaded the plugin for Netbeans 6.5 (ICEfaces-1.7.2-SP1b-NetBeans-6.5-modules) and installed it. I can create new IceFace projects very nicely and all should be sweetness and light.

Unfortunately when I follow the guide to convert the existing project to IceFaces I get the following error.

Caused by: java.lang.IllegalStateException: ICEfaces requires the PersistentFacesServlet. Please check your web.xml servlet mappings
at com.icesoft.faces.context.DOMResponseWriter.<init>(DOMResponseWriter.java:126)
at com.icesoft.faces.context.DOMContext.createTemporaryDOMResponseWriter(DOMContext.java:166)
at com.icesoft.faces.context.DOMContext.attachDOMContext(DOMContext.java:107)
at com.icesoft.faces.renderkit.dom_html_basic.TextRenderer.renderUIOutput(TextRenderer.java:89)
at com.icesoft.faces.renderkit.dom_html_basic.TextRenderer.renderEnd(TextRenderer.java:66)
at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeEnd(DomBasicRenderer.java:126)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:896)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:245)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:320)


The servlet definition is in Web.xml, the class files are in the jars; I've used Google to look for solutions - nothing helpful.

Anyone any ideas??

Thanks in advance
Kevin
 
Profile for KevinVinsen -> Messages posted by KevinVinsen [5]
Go to:   
Powered by JForum 2.1.7ice © JForum Team