Forums Register Login

NullPointerException in included JSF

+Pie Number of slices to send: Send
I have this mapping




My facelets are configured like this in web.xml




and in index.jsp, I'm tring to include another JSP when I get the following error...



HTTP Status 500 -

--------------------------------------------------------------------------------

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)


root cause

java.lang.NullPointerException
com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:142)
org.apache.jsp.index_jsp._jspx_meth_f_view_0(index_jsp.java:142)
org.apache.jsp.index_jsp._jspService(index_jsp.java:97)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.


--------------------------------------------------------------------------------

Apache Tomcat/5.5.17




I don't know what I'm doing wrong. I tried to search for the rules in including a JSF page to another JSF page but keep on getting this error... Here are the two jsf sources.


index.jsp




Login.jsp


I'm really getting tired now... I hope you guys could help me. Thanks!
[ May 04, 2007: Message edited by: Timothy Sam ]
+Pie Number of slices to send: Send
Is there any f:view tag in "List.jsp"? Included files should only have f:subview tag as parent.
+Pie Number of slices to send: Send
OMG! Sorry that should've been




Problem still persists though...
[ May 04, 2007: Message edited by: Timothy Sam ]
+Pie Number of slices to send: Send
Hi! You guys have any idea on how to solve this problem? Thanks!
+Pie Number of slices to send: Send
Try the following,



url should be relative path to login.jsp from current jsp.

Regards
Ravindra
+Pie Number of slices to send: Send
Hoooray! Thank you very much! It worked!
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 3930 times.
Similar Threads
Problems in JSF running with MyEclipse
Try to open JSF page in MyEclipse/JBoss
Which Package to Import to Use FacesContext's getRequestMap()?
Arraylist in bean cant be displayed in jsp
Navigation Problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 08:21:23.