struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Wannemacher <w...@wantii.com>
Subject Re: Struts 2.0 to 2.1 Migration problem
Date Thu, 31 Dec 2009 14:53:22 GMT
Hello,

Can you post your web.xml, particularly the section that defines the
Struts filters? Between 2.0 and 2.1, we broke the DispatcherFilter
into multiple filters. Also, can you post the configuration of this
global error result?

-Wes

On Wed, Dec 30, 2009 at 7:49 PM, bberken <bberkenpas@mainstreamdata.com> wrote:
>
> I've attempted to update our application from struts 2.0.6 to 2.1.6 (also
> using tiles 2.0.6) and am running into problems - I have a global error
> result defined as a jsp inside my WEB-INF dir:
>
>
>  ....
> /WEB-INF/jsp/Error.jsp
>
>
>
> and rendering of this jsp (and any jsp inside my WEB-INF) is failing on any
> tags inside that jsp. I receive a nullpointerexception:
>
> java.lang.NullPointerException
>
>        at
> org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:49)
>
>        at
> org.apache.jsp.WEB_002dINF.jsp.Error_jsp._jspx_meth_s_005finclude_005f0(Error_jsp.java:143)
>
>
> And debugging into ComponentTagSupport shows that the line:
>
> Container container = Dispatcher.getInstance().getContainer();
>
>
> is failing due to inability to obtain an instance of the Dispatcher.
>
>
> This all appears to work if I move the jsps out of WEB-INF and into my
> normal webcontext directory.
>
>
> Does anyone have any thoughts as to what I'm missing? This did all work
> w/struts 2.0.6, and I've only made small modifications to my web.xml..
> following this migration howto:
>
> http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
> http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
>
>
> thanks
>
>
> --
> View this message in context: http://old.nabble.com/Struts-2.0-to-2.1-Migration-problem-tp26974067p26974067.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>



-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message