Problem with NB 6.7 and ICEFaces 1.8.2
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Problem with NB 6.7 and ICEFaces 1.8.2  XML
Forum Index -> Tools
Author Message
AlanObject

Joined: 22/10/2009 00:00:00
Messages: 21
Offline


I tried this question over at nbusers, but nobody there seems interested.

The NB 6.7 download doesn't have the lastest ICEFaces implementation, so I uninstalled it and installed the latest NBM files. I then create a project with ICEFaces as the framework, but I can't run the resulting welcomeICEfaces.jspx file. The error I get from Glassfish 2.1 is this:

[ICEsoft Technologies, Inc.
ICEfaces 1.8.2
Build number: 7
Revision: 19321

...

Error Rendering View[/welcomeICEfaces.jspx]
java.lang.IllegalStateException: ICEfaces requires the PersistentFacesServlet. Please check your web.xml servlet mappings
at com.icesoft.faces.context.DOMResponseWriter.<init>(DOMResponseWriter.java:154)
at com.icesoft.faces.context.DOMContext.createTemporaryDOMResponseWriter(DOMContext.java:182)

etc.

The web.xml file is the default that the template creates, and has the following:

<servlet>
<servlet-name>Persistent Faces Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.xmlhttp.PersistentFacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>Blocking Servlet</servlet-name>
<servlet-class>com.icesoft.faces.webapp.xmlhttp.BlockingServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>uploadServlet</servlet-name>
<servlet-class>com.icesoft.faces.component.inputfile.FileUploadServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

I have never seen a working ICEFaces installation before so I don't know where to start. Any suggestions?
AlanObject

Joined: 22/10/2009 00:00:00
Messages: 21
Offline


As an aside, I was not able to get the "code" tag markup to work in the post above in the preview. It seems to work OK when it posts.

Code:
this is some code
 
jtrujillo

Joined: 12/08/2009 00:00:00
Messages: 11
Offline


What do you have as servlet mappings in your web.xml?

I'm using NB 6.7 and Ice 1.8.2 and have:

[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>
[/code]
jtrujillo

Joined: 12/08/2009 00:00:00
Messages: 11
Offline


Apparently, it doesn't like rendering that XML as [code][/code].
AlanObject

Joined: 22/10/2009 00:00:00
Messages: 21
Offline


The servlet mappings I got from the template look like they are what is needed:

<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>
<servlet-mapping>
<servlet-name>Blocking Servlet</servlet-name>
<url-pattern>/block/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>uploadServlet</servlet-name>
<url-pattern>/uploadHtml</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>


And while we are at it, the context parameters are:

<context-param>
<param-name>com.icesoft.faces.concurrentDOMViews</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.debugDOMUpdate</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.validateXml</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>com.sun.faces.verifyObjects</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.uploadMaxFileSize</param-name>
<param-value>4048576</param-value>
</context-param>
<context-param>
<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
<param-value>server</param-value>
</context-param>
<context-param>
<param-name>com.icesoft.faces.synchronousUpdate</param-name>
<param-value>true</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.xhtml</param-value>
</context-param>
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>false</param-value>
</context-param>
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>


The settings look "by the book" to me but again I have yet to see a working installation so I don't have anything to compare it to.

You are right that the "code" tag and the "quote" tag cannot take XML input. Is this component we are talking through an ICEFaces component? If so it doesn't speak very well for my evaluation project.

 
Forum Index -> Tools
Go to:   
Powered by JForum 2.1.7ice © JForum Team