It looks like it's barfing on two things: 1) the 404.jsp and 2) an if
statement in the SiteMesh decorator. You might try removing the
decorator tags from 404.jsp and see if that helps.

Matt

On 6/15/07, Travers Snyman <[EMAIL PROTECTED]> wrote:




I have followed the person tutorial for struts basic type and experienced a
problem right at the end. Everything works fine on jetty (mvn
jetty:run-war), but with tomcat (mvn cargo:start -Dcargo.wait=true), I get a
null pointer exception when trying to access editPerson. The list person is
fine. It looks like a problem in the view layer, but I am not even sure the
action is accessed as I can see no debug info when running tomcat from
cargo. Naturally this also causes the canoo web test to fail with a 404
error for the edit person test. My struts.xml is as in the tutorial. Below
is a part of the stack trace:



Is there maybe an issue with Tomcat 5.2.23? It does not look like anybody
else on the list had this issue so it looks like a configuration issue on my
side, but I can't understand why jetty has no problem. I can live with not
using tomcat, but would really like the canoo tests to at least pass.



Thanks

Travers java.lang.NullPointerException
         at
org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:50)
         at
org.apache.jsp.decorators.default_jsp._jspx_meth_s_005fif_005f0(default_jsp.java:554)
         at
org.apache.jsp.decorators.default_jsp._jspService(default_jsp.java:210)
         at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
         at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
         at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:594)
         at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:505)
         at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:965)
         at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:605)
         at
com.opensymphony.module.sitemesh.taglib.page.ApplyDecoratorTag.doEndTag(ApplyDecoratorTag.java:256)
         at
org.apache.jsp._404_jsp._jspx_meth_page_005fapplyDecorator_005f0(_404_jsp.java:234)
         at
org.apache.jsp._404_jsp._jspService(_404_jsp.java:96)
         at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
         at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)





--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to