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.

Reply via email to