Removing the decorator tags from 404.jsp does not make a difference.
Repeating using mvn appfuse:gen works. Only difference, I can see with
my hand generated application is I am not using the generic dao and
service dao implementations - the applicationContext entries are
different. I must be doing something very silly in configuration
somewhere. Still Jetty works fine

Travers

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt
Raible
Sent: 15 June 2007 07:13 PM
To: [email protected]
Subject: Re: [appfuse-user] m5 struts problem with tomcat but not jetty

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(ComponentTag
Support.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.ja
va: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(Applica
tionFilterChain.java:269)
>          at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
>          at
>
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.j
ava:39)
>          at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:215)
>          at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:188)
>          at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatc
her.java:691)
>          at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDisp
atcher.java:594)
>          at
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispat
cher.java:505)
>          at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.ja
va:965)
>          at
>
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:6
05)
>          at
>
com.opensymphony.module.sitemesh.taglib.page.ApplyDecoratorTag.doEndTag(
ApplyDecoratorTag.java:256)
>          at
>
org.apache.jsp._404_jsp._jspx_meth_page_005fapplyDecorator_005f0(_404_js
p.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.ja
va: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]

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

Reply via email to