users@glassfish.java.net

Re: Uploading files with JSF

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Jul 2008 13:42:50 PDT

OK, it's getting late here as it's Arizona time + 9 hours in France, but what I've just done is to remove the HTML file leaving the file index.jsp to start the application. It has only one line in it, which is

<jsp:forward page="MyForm.faces"/>

and in my web.xml file I changed

<welcome-file-list>
      <welcome-file>index.html</welcome-file>
 </welcome-file-list>

to

<welcome-file-list>
      <welcome-file>index.jsp</welcome-file>
</welcome-file-list>

leaving the faces-config.xml and all other files unchanged, as given earlier. On redeploying I get as before a blank page and the following warning messages in the server log:

Message ID: executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl_at_1c04c06) threw exception java.lang.NullPointerException at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java

Complete Message: 83) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:168) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245) at...

followed by a severe message of a NullPointerException.

Perhaps you or someone else can kindly make some suggestions while I sleep on the problem.

Christopher Sharp
[Message sent by forum member 'csharpdotcom' (csharpdotcom)]

http://forums.java.net/jive/thread.jspa?messageID=283771