Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 57537 invoked from network); 31 Dec 2009 15:54:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Dec 2009 15:54:24 -0000 Received: (qmail 56347 invoked by uid 500); 31 Dec 2009 15:54:22 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 56271 invoked by uid 500); 31 Dec 2009 15:54:22 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 56257 invoked by uid 99); 31 Dec 2009 15:54:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2009 15:54:22 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Dec 2009 15:54:13 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1NQNLU-0004U0-6K for user@struts.apache.org; Thu, 31 Dec 2009 07:53:52 -0800 Message-ID: <26979597.post@talk.nabble.com> Date: Thu, 31 Dec 2009 07:53:52 -0800 (PST) From: bberken To: user@struts.apache.org Subject: Re: Struts 2.0 to 2.1 Migration problem In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: bberkenpas@mainstreamdata.com References: <26974067.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org "Can you post your web.xml, particularly the section that defines the Struts filters? " my web.xml: =09=09=09=09 =09TestApp =09TestApp. =09 =09 =09=09/pages/index.jsp =09 =09 =09 =09=09java.lang.Exception =09=09/WEB-INF/jsp/Error.jsp =09 =09 =09 =09=09This context parameter specifies the name and location= =20 =09=09of the Spring root application context file. =09=09contextConfigLocation =09=09classpath*:applicationContext*.xml =09 =09 =09=09This context parameter specifies the name and location= =20 =09=09of the Tiles Definitions file. =09=09org.apache.tiles.DEFINITIONS_CONFIG =09=09/WEB-INF/classes/tiles-defs.xml =09 20=20 =20 =20 =09=09encodingFilter =09 org.springframework.web.filter.CharacterEncodingFilter=09 =09=09 =09=09=09encoding =09=09=09UTF-8 =09=09=09 =09=09 =09=09=09forceEncoding =09=09=09true =09=09 =09 =09 =09=09openSessionInViewFilter =09 org.springframework.orm.hibernate3.support.OpenSessionInViewF= ilter =09 =09 =09=09filterDispatcher =09 org.apache.struts2.dispatcher.FilterDispatcher =09 =09 encodingFilter /* =09 =09 =09=09openSessionInViewFilter =09=09/* =09 =09 =09 =09=09filterDispatcher =09=09/* =09 =09 =20 org.springframework.web.context.ContextLoaderListener =09 =09 =09 org.apache.struts2.tiles.StrutsTilesListener =09 =09 "Also, can you post the configuration of this global error result?" struts.xml global-results: =09=09 accessDenied.jsp= =09=09 loginLimitCheck.jsp =09=09 loginExpiered.jsp =09=09 loginDisabled.jsp =09=09 loginIncorrect.jsp =09=09 /login.jsp =09=09 /logintemplate2.jsp =09=09=09/WEB-INF/jsp/Error.jsp<= /result> =09=09=09default =09=09 =09 =09=09 =09=09=09=20 =09=09 On Wed, Dec 30, 2009 at 7:49 PM, bberken 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: > > > =C2=A0.... > /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 > > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagS= upport.java:49) > > =C2=A0 =C2=A0 =C2=A0 =C2=A0at > org.apache.jsp.WEB_002dINF.jsp.Error_jsp._jspx_meth_s_005finclude_005f0(E= rror_jsp.java:143) > > > And debugging into ComponentTagSupport shows that the line: > > Container container =3D 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-strut= s-20x-to-21x.html > http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-strut= s-20x-to-21x.html > > > thanks > > > -- > View this message in context: > http://old.nabble.com/Struts-2.0-to-2.1-Migration-problem-tp26974067p2697= 4067.html > Sent from the Struts - User mailing list archive at Nabble.com. > --=20 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 --=20 View this message in context: http://old.nabble.com/Struts-2.0-to-2.1-Migra= tion-problem-tp26974067p26979597.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org