This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF HelloWorld Application in Eclipse throwing NullPointerException  RSS feed

 
Poulin Michael
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a simple hello world apllication set up in Eclipse 3.3.2 with Mojarra-1.2_09, apache-tomcat-6.0.18 and JSTL 1.2. When I try to access index.jsp I am getting the following error:
....
INFO: Server startup in 2113 ms
Aug 18, 2008 1:54:31 PM com.sun.faces.lifecycle.Phase doPhase
SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /index.jsp) Exception thrown during phase execution: javax.faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@16917ee]
Aug 18, 2008 1:54:31 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
java.lang.NullPointerException
at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:188)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:194)
....

I could run the same program on Tomcat without using Eclipse IDE.. Could someone help me resolve this issue?
 
Poulin Michael
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

This issue is resolved.

The problem was that first I tried running the program by righ clicking on index.jsp and then by selecting Run on Server. Instead of this when I tried right clicking on the 'helloworld' root folder shown in Project Explorer it worked fine.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!