| Author |
For cracks only
|
Urs Wagner
Greenhorn
Joined: Sep 01, 2005
Posts: 9
|
|
What shall I do? Since yesterday I get this exception stack in my JSF app. org.apache.jasper.JasperException org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:370) 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:810) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660) org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:45) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) 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:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81) root cause java.lang.NullPointerException javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.java:646) javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:254) org.apache.myfaces.taglib.core.ViewTag.doStartTag(ViewTag.java:71) org.apache.jsp.login_jsp._jspx_meth_f_view_0(org.apache.jsp.login_jsp:120) org.apache.jsp.login_jsp._jspService(org.apache.jsp.login_jsp:93) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) 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:810) org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693) org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660) org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:45) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:810) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322) 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:810) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
|
 |
Sajan Patel
Ranch Hand
Joined: Oct 25, 2004
Posts: 77
|
|
hi Sorry because This description is not enough for me to understand your problem. but you are passing null Object somewhere and you are calling some method from that NULL Object In Above code, I am calling getTime() method from GregCal object which return java.util.Date. If myGregCalen is null and I try to call getTime() method than it will throw nullPointer exception so try to find If you are doing such thing in your JSP. I hope this solve your poblem
|
 |
Adrian Marti
Greenhorn
Joined: Sep 07, 2004
Posts: 11
|
|
i had this problem when i was incorrectly using .jsp links instead of .faces links. Pretty sure it just has to do with the web.xml mapping. The error was absolutely no help in finding this. Adrian
|
 |
Karthik Chinnayan
Greenhorn
Joined: Nov 16, 2005
Posts: 3
|
|
Hi Urs, I was having the same problem and infact saw ur posting online in this forum when I was searching for a solution. Please read the section 9.9 in the following link http://docs.jboss.org/jbossas/jboss4guide/r4/html/ch9.chapt.html It mentions about removing the MyFaces libraries if you are going to use JSF only. Mine was a pure JSF application, so I removed the following directory from my JBOSS installation (this dir has few myfaces.jar files that are included by default in the JBOSS installation). dir name ==> jbossweb-tomcat55.sar/jsf-lib But, i made sure I have all the necessary libraries (.jar files) in my application. In my case, I have jsf-api.jar, jsf-impl.jar along with other commons...jar files. in the "WEB-INF/lib" folder of my application directory. After doing these steps, I was able to successfully deploy my JSF application in JBOSS without any errors. I assume the problem u have is similar/same as mine and this approach will solve it. All the best with ur work. -Ceeeyem [ November 16, 2005: Message edited by: Karthik Chinnayan ]
|
The Open source fever caught me tooo.. But, learning and enjoying it...
|
 |
 |
|
|
subject: For cracks only
|
|
|