From issuesdanielmartin@example.com Wed Apr 01 06:58:32 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 99937 invoked from network); 1 Apr 2009 06:58:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 06:58:32 -0000 Received: (qmail 72335 invoked by uid 500); 1 Apr 2009 06:58:32 -0000 Delivered-To: danielmartin@example.com Received: (qmail 72251 invoked by uid 500); 1 Apr 2009 06:58:31 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 72243 invoked by uid 99); 1 Apr 2009 06:58:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 06:58:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 06:58:23 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id B9F58234C044 for <danielmartin@example.com>; Tue, 31 Mar 2009 23:58:02 -0700 (PDT) Message-ID: <1985262366.1238569082760.JavaMail.jira@brutus> Date: Tue, 31 Mar 2009 23:58:02 -0700 (PDT) From: "Lukasz Lenart (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Commented: (WW-2911) Update maven struts2-archetype-blank to latest release version In-Reply-To: <1783296430.1228776397546.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-2911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45810#action_45810 ] Lukasz Lenart commented on WW-2911: ----------------------------------- I had been playing with the archetype from repo and I discovered some strange behaviour, it always creates package example with predefined classes and the same classes put in to package created by user. You can check it with command below: mvn archetype:generate -DarchetypeCatalog=http://www.lenart.org.pl/maven Regards -- Lukasz > Update maven struts2-archetype-blank to latest release version > -------------------------------------------------------------- > > Key: WW-2911 > URL: https://issues.apache.org/struts/browse/WW-2911 > Project: Struts 2 > Issue Type: Improvement > Components: Other > Affects Versions: 2.0.14 > Environment: Windows XP Professional SP2, cygwin, IDEA IntelliJ 8.0.1 > Reporter: Lukasz Lenart > Priority: Minor > Fix For: 2.1.7 > > Attachments: struts2-archetype-blank.patch > > > Update maven archetype to use latest struts2 release version, see attached patch -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Wed Apr 01 07:02:29 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 4302 invoked from network); 1 Apr 2009 07:02:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 07:02:29 -0000 Received: (qmail 77676 invoked by uid 500); 1 Apr 2009 07:02:28 -0000 Delivered-To: danielmartin@example.com Received: (qmail 77596 invoked by uid 500); 1 Apr 2009 07:02:28 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 77588 invoked by uid 99); 1 Apr 2009 07:02:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 07:02:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 07:02:27 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id F0901234C044 for <danielmartin@example.com>; Wed, 1 Apr 2009 00:02:05 -0700 (PDT) Message-ID: <737442258.1238569325983.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 00:02:05 -0700 (PDT) From: "Henrik Brautaset Aronsen (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Updated: (WW-3069) Migration from 2.0.x to 2.1.x: fieldError does not use the full parameter name as id In-Reply-To: <1398093977.1238569325957.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henrik Brautaset Aronsen updated WW-3069: ----------------------------------------- Description: After upgrading from Struts 2.0.11 to 2.1.6, fieldErrors weren't displayed next to form fields any more. The validation still worked, because I could still see the errors by issuing a <s:fielderror/>. My form is a value on the action, and is addressed like this: <s:textfield label="Your e-mail address" name="form.email" theme="mytheme" /> I noticed that to access a separate value in fieldError in 2.1.6, I had to chop off "form.": <s:fielderror fieldName="form.email" /> <!-- doesn't show anything --> <s:fielderror fieldName="email" /> <!-- shows the error--> Now, to be able to show my error using my template, I had to add an ID to my textfield: <s:textfield label="Your e-mail address" id="email" name="form.email" theme="mytheme" /> Then I had to change the default hasErrorField assignment in the controlheader.tpl template: <#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors[parameters.name]??/> <!-- does not work --> <#assign hasFieldErrors = parameters.id?? && fieldErrors?? && fieldErrors[parameters.id]??/> <!-- works as intended --> And change way I fetched errors in my controlfooter.tpl: <#list fieldErrors[parameters.name] as error> <!-- does not work --> <#list fieldErrors[parameters.id] as error> <!-- works --> Voila! I can see field errors again. Just to summarize: To access a fieldError, I have to manually strip "form."from "form.email". I also have to set an additional ID on my form fields (with the stripped value) to be able to access it from my template. Is this the intended behaviour? was: After upgrading from Struts 2.0.11 to 2.1.6, fieldErrors weren't displayed next to form fields any more. The validation still worked, because I could still see the errors by issuing a <s:fielderror/>. My form is a value on the action, and is addressed like this: {code} <s:textfield label="Your e-mail address" name="form.email" theme="mytheme" /> {code} I noticed that to access a separate value in fieldError in 2.1.6, I had to chop off "form.": {code} <s:fielderror fieldName="form.email" /> <!-- doesn't show anything --> <s:fielderror fieldName="email" /> <!-- shows the error--> {code} Now, to be able to show my error using my template, I had to add an ID to my textfield: {code} <s:textfield label="Your e-mail address" id="email" name="form.email" theme="mytheme" /> {code} Then I had to change the default hasErrorField assignment in the controlheader.tpl template: {code} <#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors[parameters.name]??/> <!-- does not work --> <#assign hasFieldErrors = parameters.id?? && fieldErrors?? && fieldErrors[parameters.id]??/> <!-- works as intended --> {code} And change way I fetched errors in my controlfooter.tpl: {code} <#list fieldErrors[parameters.name] as error> <!-- does not work --> <#list fieldErrors[parameters.id] as error> <!-- works --> {code} Voila! I can see field errors again. Just to summarize: To access a fieldError, I have to manually strip "form."from "form.email". I also have to set an additional ID on my form fields (with the stripped value) to be able to access it from my template. Is this the intended behaviour? > Migration from 2.0.x to 2.1.x: fieldError does not use the full parameter name as id > ------------------------------------------------------------------------------------ > > Key: WW-3069 > URL: https://issues.apache.org/struts/browse/WW-3069 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.1.6 > Reporter: Henrik Brautaset Aronsen > > After upgrading from Struts 2.0.11 to 2.1.6, fieldErrors weren't displayed next to form fields any more. The validation still worked, because I could still see the errors by issuing a <s:fielderror/>. > My form is a value on the action, and is addressed like this: > <s:textfield label="Your e-mail address" name="form.email" theme="mytheme" /> > I noticed that to access a separate value in fieldError in 2.1.6, I had to chop off "form.": > <s:fielderror fieldName="form.email" /> <!-- doesn't show anything --> > <s:fielderror fieldName="email" /> <!-- shows the error--> > Now, to be able to show my error using my template, I had to add an ID to my textfield: > <s:textfield label="Your e-mail address" id="email" name="form.email" theme="mytheme" /> > Then I had to change the default hasErrorField assignment in the controlheader.tpl template: > <#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors[parameters.name]??/> <!-- does not work --> > <#assign hasFieldErrors = parameters.id?? && fieldErrors?? && fieldErrors[parameters.id]??/> <!-- works as intended --> > And change way I fetched errors in my controlfooter.tpl: > <#list fieldErrors[parameters.name] as error> <!-- does not work --> > <#list fieldErrors[parameters.id] as error> <!-- works --> > Voila! I can see field errors again. > Just to summarize: To access a fieldError, I have to manually strip "form."from "form.email". I also have to set an additional ID on my form fields (with the stripped value) to be able to access it from my template. Is this the intended behaviour? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Wed Apr 01 07:02:30 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 4357 invoked from network); 1 Apr 2009 07:02:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 07:02:29 -0000 Received: (qmail 78060 invoked by uid 500); 1 Apr 2009 07:02:29 -0000 Delivered-To: danielmartin@example.com Received: (qmail 78019 invoked by uid 500); 1 Apr 2009 07:02:29 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 78011 invoked by uid 99); 1 Apr 2009 07:02:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 07:02:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 07:02:27 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id EA05F234C004 for <danielmartin@example.com>; Wed, 1 Apr 2009 00:02:05 -0700 (PDT) Message-ID: <1398093977.1238569325957.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 00:02:05 -0700 (PDT) From: "Henrik Brautaset Aronsen (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Created: (WW-3069) Migration from 2.0.x to 2.1.x: fieldError does not use the full parameter name as id MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org Migration from 2.0.x to 2.1.x: fieldError does not use the full parameter name as id ------------------------------------------------------------------------------------ Key: WW-3069 URL: https://issues.apache.org/struts/browse/WW-3069 Project: Struts 2 Issue Type: Bug Affects Versions: 2.1.6 Reporter: Henrik Brautaset Aronsen After upgrading from Struts 2.0.11 to 2.1.6, fieldErrors weren't displayed next to form fields any more. The validation still worked, because I could still see the errors by issuing a <s:fielderror/>. My form is a value on the action, and is addressed like this: {code} <s:textfield label="Your e-mail address" name="form.email" theme="mytheme" /> {code} I noticed that to access a separate value in fieldError in 2.1.6, I had to chop off "form.": {code} <s:fielderror fieldName="form.email" /> <!-- doesn't show anything --> <s:fielderror fieldName="email" /> <!-- shows the error--> {code} Now, to be able to show my error using my template, I had to add an ID to my textfield: {code} <s:textfield label="Your e-mail address" id="email" name="form.email" theme="mytheme" /> {code} Then I had to change the default hasErrorField assignment in the controlheader.tpl template: {code} <#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors[parameters.name]??/> <!-- does not work --> <#assign hasFieldErrors = parameters.id?? && fieldErrors?? && fieldErrors[parameters.id]??/> <!-- works as intended --> {code} And change way I fetched errors in my controlfooter.tpl: {code} <#list fieldErrors[parameters.name] as error> <!-- does not work --> <#list fieldErrors[parameters.id] as error> <!-- works --> {code} Voila! I can see field errors again. Just to summarize: To access a fieldError, I have to manually strip "form."from "form.email". I also have to set an additional ID on my form fields (with the stripped value) to be able to access it from my template. Is this the intended behaviour? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Wed Apr 01 08:47:27 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 57336 invoked from network); 1 Apr 2009 08:47:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 08:47:27 -0000 Received: (qmail 9749 invoked by uid 500); 1 Apr 2009 08:47:26 -0000 Delivered-To: danielmartin@example.com Received: (qmail 9666 invoked by uid 500); 1 Apr 2009 08:47:26 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 9650 invoked by uid 99); 1 Apr 2009 08:47:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 08:47:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 08:47:24 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 91B25234C004 for <danielmartin@example.com>; Wed, 1 Apr 2009 01:47:02 -0700 (PDT) Message-ID: <386766375.1238575622595.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 01:47:02 -0700 (PDT) From: "Henrik Brautaset Aronsen (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Commented: (WW-3069) Migration from 2.0.x to 2.1.x: fieldError does not use the full parameter name as id In-Reply-To: <1398093977.1238569325957.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45811#action_45811 ] Henrik Brautaset Aronsen commented on WW-3069: ---------------------------------------------- To elaborate further: How will the template / fieldError cope with MyAction.getForm().getEmail() vs. MyAction.getEmail() if they both are referred to as <s:fielderror fieldName="email" />? > Migration from 2.0.x to 2.1.x: fieldError does not use the full parameter name as id > ------------------------------------------------------------------------------------ > > Key: WW-3069 > URL: https://issues.apache.org/struts/browse/WW-3069 > Project: Struts 2 > Issue Type: Bug > Affects Versions: 2.1.6 > Reporter: Henrik Brautaset Aronsen > > After upgrading from Struts 2.0.11 to 2.1.6, fieldErrors weren't displayed next to form fields any more. The validation still worked, because I could still see the errors by issuing a <s:fielderror/>. > My form is a value on the action, and is addressed like this: > <s:textfield label="Your e-mail address" name="form.email" theme="mytheme" /> > I noticed that to access a separate value in fieldError in 2.1.6, I had to chop off "form.": > <s:fielderror fieldName="form.email" /> <!-- doesn't show anything --> > <s:fielderror fieldName="email" /> <!-- shows the error--> > Now, to be able to show my error using my template, I had to add an ID to my textfield: > <s:textfield label="Your e-mail address" id="email" name="form.email" theme="mytheme" /> > Then I had to change the default hasErrorField assignment in the controlheader.tpl template: > <#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors[parameters.name]??/> <!-- does not work --> > <#assign hasFieldErrors = parameters.id?? && fieldErrors?? && fieldErrors[parameters.id]??/> <!-- works as intended --> > And change way I fetched errors in my controlfooter.tpl: > <#list fieldErrors[parameters.name] as error> <!-- does not work --> > <#list fieldErrors[parameters.id] as error> <!-- works --> > Voila! I can see field errors again. > Just to summarize: To access a fieldError, I have to manually strip "form."from "form.email". I also have to set an additional ID on my form fields (with the stripped value) to be able to access it from my template. Is this the intended behaviour? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Wed Apr 01 12:09:27 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 74215 invoked from network); 1 Apr 2009 12:09:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 12:09:27 -0000 Received: (qmail 77804 invoked by uid 500); 1 Apr 2009 12:09:27 -0000 Delivered-To: danielmartin@example.com Received: (qmail 77751 invoked by uid 500); 1 Apr 2009 12:09:27 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 77743 invoked by uid 99); 1 Apr 2009 12:09:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 12:09:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 12:09:24 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 67FF7234C045 for <danielmartin@example.com>; Wed, 1 Apr 2009 05:09:03 -0700 (PDT) Message-ID: <266870644.1238587743424.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 05:09:03 -0700 (PDT) From: "Joao Del Valle (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Commented: (WW-2788) Spring integration org.springframework.util.ReflectionUtils.makeAccessible In-Reply-To: <769759796.1219683744908.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-2788?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D45812= #action_45812 ]=20 Joao Del Valle commented on WW-2788: ------------------------------------ I had the same issue using Oracle WebLogic 10.3, with tutorial-like install= ation for Struts 2.1.6 and Spring 2.5.6. > Spring integration org.springframework.util.ReflectionUtils.makeAccessibl= e > -------------------------------------------------------------------------= - > > Key: WW-2788 > URL: https://issues.apache.org/struts/browse/WW-2788 > Project: Struts 2 > Issue Type: Bug > Components: Plugin - Spring > Affects Versions: 2.1.2 > Environment: jdk1.6.0_07, Tomcat 6.0.16, Struts-2.1.2, Spring-2.5= .5 > Reporter: Andr=C3=A9 Rosot > > I have built an application with Struts-83.161.120.155 and Spring-2.5.5, and it= works nicely. > But, when I switch the Struts to version 2.1.2, the same application thro= ws this exception at deploy: > SEVERE: Exception sending context initialized event to listener instance = of class org.springframework.web.context.ContextLoaderListener > java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.mak= eAccessible(Ljava/lang/reflect/Constructor;)V > at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils= .java:83) > at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils= .java:62) > at org.springframework.web.context.ContextLoader.createWebApplica= tionContext(ContextLoader.java:249) > at org.springframework.web.context.ContextLoader.initWebApplicati= onContext(ContextLoader.java:199) > at org.springframework.web.context.ContextLoaderListener.contextI= nitialized(ContextLoaderListener.java:45) > at org.apache.catalina.core.StandardContext.listenerStart(Standar= dContext.java:3843) > at org.apache.catalina.core.StandardContext.start(StandardContext= .java:4350) > at org.apache.catalina.core.ContainerBase.addChildInternal(Contai= nerBase.java:791) > at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.= java:771) > at org.apache.catalina.core.StandardHost.addChild(StandardHost.ja= va:525) > at org.apache.catalina.startup.HostConfig.deployDescriptor(HostCo= nfig.java:626) > at org.apache.catalina.startup.HostConfig.deployDescriptors(HostC= onfig.java:553) > at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.j= ava:488) > at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1= 147) > at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf= ig.java:311) > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L= ifecycleSupport.java:117) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.jav= a:1053) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:= 719) > at org.apache.catalina.core.ContainerBase.start(ContainerBase.jav= a:1045) > at org.apache.catalina.core.StandardEngine.start(StandardEngine.j= ava:443) > at org.apache.catalina.core.StandardService.start(StandardService= .java:516) > at org.apache.catalina.core.StandardServer.start(StandardServer.j= ava:710) > at org.apache.catalina.startup.Catalina.start(Catalina.java:578) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess= orImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288= ) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Wed Apr 01 17:46:30 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 79818 invoked from network); 1 Apr 2009 17:46:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 17:46:30 -0000 Received: (qmail 51477 invoked by uid 500); 1 Apr 2009 17:46:30 -0000 Delivered-To: danielmartin@example.com Received: (qmail 51425 invoked by uid 500); 1 Apr 2009 17:46:29 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 51411 invoked by uid 99); 1 Apr 2009 17:46:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 17:46:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 17:46:25 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 7BB63234C045 for <danielmartin@example.com>; Wed, 1 Apr 2009 10:46:03 -0700 (PDT) Message-ID: <1700735175.1238607963495.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 10:46:03 -0700 (PDT) From: "Musachy Barroso (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Commented: (WW-3068) ExecuteAndWaitInterceptor org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitInterceptor.java:256) In-Reply-To: <2061226723.1238454663477.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45813#action_45813 ] Musachy Barroso commented on WW-3068: ------------------------------------- The problem is that configuration is now unmodifiable, so adding a "fake" result to the result config map will cause an exception to be thrown. > ExecuteAndWaitInterceptor org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitInterceptor.java:256) > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: WW-3068 > URL: https://issues.apache.org/struts/browse/WW-3068 > Project: Struts 2 > Issue Type: Bug > Environment: Struts-2.1.6 > TC 6.0.14 > JDK 1.6.0_10 > > Subject: Re: ExecuteAndWaitInterceptor not working (2.1.6) > > > execAndWait in 2.1.6 gives the following exception when it kicks in: (code pasted below) > > > > > > > > > java.lang.UnsupportedOperationException > > > ??? java.util.Collections$UnmodifiableMap.put(Collections.java:1285) > > > ??? org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitInterceptor.java:256) > > > Reporter: Martin Gainty > > public static final String WAIT = "wait"; > org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.java > ............. > protected String doIntercept(ActionInvocation actionInvocation) throws Exception { > .............. > //sync on the real HttpSession as the session from the context is a wrap that is created > //on every request > synchronized (httpSession) > { > BackgroundProcess bp = (BackgroundProcess) session.get(KEY + name); > if ((!executeAfterValidationPass || secondTime) && bp == null) > { > bp = getNewBackgroundProcess(name, actionInvocation, threadPriority); > session.put(KEY + name, bp); > performInitialDelay(bp); // first time let some time pass before showing wait page > secondTime = false; > } > if ((!executeAfterValidationPass || !secondTime) && bp != null && !bp.isDone()) { > actionInvocation.getStack().push(bp.getAction()); > Map results = proxy.getConfig().getResults(); > if (!results.containsKey(WAIT)) { > LOG.warn("ExecuteAndWait interceptor has detected that no result named 'wait' is available. " + > "Defaulting to a plain built-in wait page. It is highly recommend you " + > "provide an action-specific or global result named '" + WAIT + > "'! This requires FreeMarker support and won't work if you don't have it installed"); > // no wait result? hmm -- let's try to do dynamically put it in for you! > ResultConfig rc = new ResultConfig.Builder(WAIT, "org.apache.struts2.views.freemarker.FreemarkerResult") > .addParams(Collections.singletonMap("location", "/org/apache/struts2/interceptor/wait.ftl")) > .build(); > /************ABOVE CODE causes abend************/ > results.put(WAIT, rc); > //http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html#put(java.lang.Object,%20java.lang.Object) > } > if (TokenHelper.getToken() != null) { > session.put(TokenHelper.getTokenName(), TokenHelper.getToken()); > } > return WAIT; > } else if ((!executeAfterValidationPass || !secondTime) && bp != null && bp.isDone()) { > session.remove(KEY + name); > actionInvocation.getStack().push(bp.getAction()); > // if an exception occured during action execution, throw it here > if (bp.getException() != null) { > throw bp.getException(); > } > return bp.getResult(); > } else { > // this is the first instance of the interceptor and there is no existing action > // already run in the background, so let's just let this pass through. We assume > // the action invocation will be run in the background on the subsequent pass through > // this interceptor > return actionInvocation.invoke(); > } > } > } > where > Collections.singletonMap("location", "/org/apache/struts2/interceptor/wait.ftl")) > public static <K,V> Map<K,V> singletonMap(K key, V value) { > 3343 return new SingletonMap<K,V>(key, value); > 3344 } > //Here is applicable SingletonMap > 3349 private static class SingletonMap<K,V> > 3350 extends AbstractMap<K,V> > 3351 implements Serializable { > 3352 private static final long serialVersionUID = -6979724477215052911L; > 3353 > 3354 private final K k; > 3355 private final V v; > 3356 > 3357 SingletonMap(K key, V value) { > 3358 k = key; > 3359 v = value; > 3360 } > //UnsupportedOperation details > The "destructive" methods contained in this interface, that is, the methods that modify the map on which they operate, are specified to throw UnsupportedOperationException if this map does not support the operation. If this is the case, these methods may, but are not required to, throw an UnsupportedOperationException if the invocation would have no effect on the map. For example, invoking the #putAll(Map) method on an unmodifiable map may, but is not required to, throw the exception if the map whose mappings are to be "superimposed" is empty. > //which calls Builder > http://struts.apache.org/2.1.6/struts2-core/apidocs/com/opensymphony/xwork2/config/entities/ResultConfig.Builder.html > //which calls addparams method which takes 2 String placeholders for Map > ResultConfig.Builder addParams(Map<String,String> params) > //the code calls singletonMap which is an immutable Map > 3332 /** > 3333 * Returns an immutable map, mapping only the specified key to the > 3334 * specified value. The returned map is serializable. > 3335 * > 3336 * @param key the sole key to be stored in the returned map. > 3337 * @param value the value to which the returned map maps <tt>key</tt>. > 3338 * @return an immutable map containing only the specified key-value > 3339 * mapping. > 3340 * @since 1.3 > 3341 */ > 3342 public static <K,V> Map<K,V> singletonMap(K key, V value) { > 3343 return new SingletonMap<K,V>(key, value); > 3344 } > so the fix would be to replace > Collections.SingletonMap > .addParams(Collections.singletonMap("location", "/org/apache/struts2/interceptor/wait.ftl")) > with 2 plain strings for addParams e.g. > .addParams("location", "/org/apache/struts2/interceptor/wait.ftl")) > ? > Martin -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Wed Apr 01 18:22:29 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 10361 invoked from network); 1 Apr 2009 18:22:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 18:22:29 -0000 Received: (qmail 31194 invoked by uid 500); 1 Apr 2009 18:22:27 -0000 Delivered-To: danielmartin@example.com Received: (qmail 31156 invoked by uid 500); 1 Apr 2009 18:22:27 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 31132 invoked by uid 99); 1 Apr 2009 18:22:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 18:22:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 18:22:24 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 52751234C051 for <danielmartin@example.com>; Wed, 1 Apr 2009 11:22:03 -0700 (PDT) Message-ID: <1650201912.1238610123336.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 11:22:03 -0700 (PDT) From: "Musachy Barroso (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Resolved: (WW-3068) ExecuteAndWaitInterceptor org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitInterceptor.java:256) In-Reply-To: <2061226723.1238454663477.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Musachy Barroso resolved WW-3068. --------------------------------- Resolution: Fixed Fix Version/s: 2.1.7 The solution is to create a FreeMarker result and delegate the rendering to it, instead of creating a FreeMarkerResult and adding it to the config (which causes the exception) > ExecuteAndWaitInterceptor org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitInterceptor.java:256) > ----------------------------------------------------------------------------------------------------------------------------------- > > Key: WW-3068 > URL: https://issues.apache.org/struts/browse/WW-3068 > Project: Struts 2 > Issue Type: Bug > Environment: Struts-2.1.6 > TC 6.0.14 > JDK 1.6.0_10 > > Subject: Re: ExecuteAndWaitInterceptor not working (2.1.6) > > > execAndWait in 2.1.6 gives the following exception when it kicks in: (code pasted below) > > > > > > > > > java.lang.UnsupportedOperationException > > > ??? java.util.Collections$UnmodifiableMap.put(Collections.java:1285) > > > ??? org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.doIntercept(ExecuteAndWaitInterceptor.java:256) > > > Reporter: Martin Gainty > Fix For: 2.1.7 > > > public static final String WAIT = "wait"; > org.apache.struts2.interceptor.ExecuteAndWaitInterceptor.java > ............. > protected String doIntercept(ActionInvocation actionInvocation) throws Exception { > .............. > //sync on the real HttpSession as the session from the context is a wrap that is created > //on every request > synchronized (httpSession) > { > BackgroundProcess bp = (BackgroundProcess) session.get(KEY + name); > if ((!executeAfterValidationPass || secondTime) && bp == null) > { > bp = getNewBackgroundProcess(name, actionInvocation, threadPriority); > session.put(KEY + name, bp); > performInitialDelay(bp); // first time let some time pass before showing wait page > secondTime = false; > } > if ((!executeAfterValidationPass || !secondTime) && bp != null && !bp.isDone()) { > actionInvocation.getStack().push(bp.getAction()); > Map results = proxy.getConfig().getResults(); > if (!results.containsKey(WAIT)) { > LOG.warn("ExecuteAndWait interceptor has detected that no result named 'wait' is available. " + > "Defaulting to a plain built-in wait page. It is highly recommend you " + > "provide an action-specific or global result named '" + WAIT + > "'! This requires FreeMarker support and won't work if you don't have it installed"); > // no wait result? hmm -- let's try to do dynamically put it in for you! > ResultConfig rc = new ResultConfig.Builder(WAIT, "org.apache.struts2.views.freemarker.FreemarkerResult") > .addParams(Collections.singletonMap("location", "/org/apache/struts2/interceptor/wait.ftl")) > .build(); > /************ABOVE CODE causes abend************/ > results.put(WAIT, rc); > //http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html#put(java.lang.Object,%20java.lang.Object) > } > if (TokenHelper.getToken() != null) { > session.put(TokenHelper.getTokenName(), TokenHelper.getToken()); > } > return WAIT; > } else if ((!executeAfterValidationPass || !secondTime) && bp != null && bp.isDone()) { > session.remove(KEY + name); > actionInvocation.getStack().push(bp.getAction()); > // if an exception occured during action execution, throw it here > if (bp.getException() != null) { > throw bp.getException(); > } > return bp.getResult(); > } else { > // this is the first instance of the interceptor and there is no existing action > // already run in the background, so let's just let this pass through. We assume > // the action invocation will be run in the background on the subsequent pass through > // this interceptor > return actionInvocation.invoke(); > } > } > } > where > Collections.singletonMap("location", "/org/apache/struts2/interceptor/wait.ftl")) > public static <K,V> Map<K,V> singletonMap(K key, V value) { > 3343 return new SingletonMap<K,V>(key, value); > 3344 } > //Here is applicable SingletonMap > 3349 private static class SingletonMap<K,V> > 3350 extends AbstractMap<K,V> > 3351 implements Serializable { > 3352 private static final long serialVersionUID = -6979724477215052911L; > 3353 > 3354 private final K k; > 3355 private final V v; > 3356 > 3357 SingletonMap(K key, V value) { > 3358 k = key; > 3359 v = value; > 3360 } > //UnsupportedOperation details > The "destructive" methods contained in this interface, that is, the methods that modify the map on which they operate, are specified to throw UnsupportedOperationException if this map does not support the operation. If this is the case, these methods may, but are not required to, throw an UnsupportedOperationException if the invocation would have no effect on the map. For example, invoking the #putAll(Map) method on an unmodifiable map may, but is not required to, throw the exception if the map whose mappings are to be "superimposed" is empty. > //which calls Builder > http://struts.apache.org/2.1.6/struts2-core/apidocs/com/opensymphony/xwork2/config/entities/ResultConfig.Builder.html > //which calls addparams method which takes 2 String placeholders for Map > ResultConfig.Builder addParams(Map<String,String> params) > //the code calls singletonMap which is an immutable Map > 3332 /** > 3333 * Returns an immutable map, mapping only the specified key to the > 3334 * specified value. The returned map is serializable. > 3335 * > 3336 * @param key the sole key to be stored in the returned map. > 3337 * @param value the value to which the returned map maps <tt>key</tt>. > 3338 * @return an immutable map containing only the specified key-value > 3339 * mapping. > 3340 * @since 1.3 > 3341 */ > 3342 public static <K,V> Map<K,V> singletonMap(K key, V value) { > 3343 return new SingletonMap<K,V>(key, value); > 3344 } > so the fix would be to replace > Collections.SingletonMap > .addParams(Collections.singletonMap("location", "/org/apache/struts2/interceptor/wait.ftl")) > with 2 plain strings for addParams e.g. > .addParams("location", "/org/apache/struts2/interceptor/wait.ftl")) > ? > Martin -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Wed Apr 01 22:09:33 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 7836 invoked from network); 1 Apr 2009 22:09:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Apr 2009 22:09:33 -0000 Received: (qmail 87028 invoked by uid 500); 1 Apr 2009 22:09:32 -0000 Delivered-To: danielmartin@example.com Received: (qmail 86984 invoked by uid 500); 1 Apr 2009 22:09:32 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 86976 invoked by uid 99); 1 Apr 2009 22:09:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 22:09:32 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2009 22:09:23 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 717EE234C056 for <danielmartin@example.com>; Wed, 1 Apr 2009 15:09:03 -0700 (PDT) Message-ID: <1613932465.1238623743463.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 15:09:03 -0700 (PDT) From: "Martin Gainty (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Commented: (WW-1960) action tag violates ParameterAware contract In-Reply-To: <4422554.1180625858538.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-1960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45819#action_45819 ] Martin Gainty commented on WW-1960: ----------------------------------- we can satisfy the upcast for 2nd parameter for Map.put to (upcast to Object) with List<String> var = new ArrayList<String>(); String[] AlotOfString={"String1","String2"}; for (String str : AlotOfStrings) { val.add(str); } params.put(key,(Object)var); //cast of List<String> to Object works.. //reference for HashMap put method available at http://www.exciton.cs.rice.edu/javadocs/docs/api/java/util/HashMap.html // Object put(Object key, Object value) > action tag violates ParameterAware contract > ------------------------------------------- > > Key: WW-1960 > URL: https://issues.apache.org/struts/browse/WW-1960 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions > Affects Versions: 2.0.6, 2.0.7, 2.0.8, 2.0.9, 2.0.10 > Environment: linux,jdk1.5,tomcat5.5 > Reporter: David Mansfield > Assignee: Don Brown > Priority: Minor > Fix For: 2.1.0 > > > the javadoc for ParameterAware states that the values of the map are all java.lang.String[], in other words it is a Map<String,String[]>. Indeed, when hitting an action via a 'genuine' http request, this is true. However, when hitting the action via the action tag, the values in the map are String, not String[]. The bug appears to be possibly line 177 in ActionComponent: > 176: if (parameters != null) { > 177: newParams.putAll(parameters); > 178: } > The parameters of the component are Map<String,String> and therefore cannot be combined directly into the ActionContext.getParameters map. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Thu Apr 02 02:16:26 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 97356 invoked from network); 2 Apr 2009 02:16:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 02:16:26 -0000 Received: (qmail 2735 invoked by uid 500); 2 Apr 2009 02:16:25 -0000 Delivered-To: danielmartin@example.com Received: (qmail 2643 invoked by uid 500); 2 Apr 2009 02:16:25 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 2631 invoked by uid 99); 2 Apr 2009 02:16:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 02:16:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 02:16:23 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 75353234C045 for <danielmartin@example.com>; Wed, 1 Apr 2009 19:16:02 -0700 (PDT) Message-ID: <1636297863.1238638562478.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 19:16:02 -0700 (PDT) From: "Chris Mawata (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Updated: (WW-3065) Showcase -- tiles.xml uses incorrect DTD In-Reply-To: <421252727.1238412062653.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Mawata updated WW-3065: ----------------------------- Attachment: tiles.xml.patch Patch file for the DTD change in WEB-INF/tiles.xml of the showcase application > Showcase -- tiles.xml uses incorrect DTD > ---------------------------------------- > > Key: WW-3065 > URL: https://issues.apache.org/struts/browse/WW-3065 > Project: Struts 2 > Issue Type: Bug > Components: Example Applications > Affects Versions: 2.1.6 > Reporter: Chris Mawata > Priority: Minor > Attachments: tiles.xml.patch > > > DTD in WEB-INF/tiles.xml should be > <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://tiles.apache.org/dtds/tiles-config_2_0.dtd"> > which has the definitions for the <put-attribute> tag, and not > <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN" "http://struts.apache.org/dtds/tiles-config_2_0.dtd"> > which does not have <put-attribute> but instead has just <put> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Thu Apr 02 03:15:25 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 12893 invoked from network); 2 Apr 2009 03:15:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 03:15:25 -0000 Received: (qmail 39490 invoked by uid 500); 2 Apr 2009 03:15:24 -0000 Delivered-To: danielmartin@example.com Received: (qmail 39412 invoked by uid 500); 2 Apr 2009 03:15:23 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 39403 invoked by uid 99); 2 Apr 2009 03:15:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 03:15:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 03:15:22 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id B779D234C045 for <danielmartin@example.com>; Wed, 1 Apr 2009 20:15:02 -0700 (PDT) Message-ID: <770-244-2241.1238642102749.JavaMail.jira@brutus> Date: Wed, 1 Apr 2009 20:15:02 -0700 (PDT) From: "Jason Pyeron (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Updated: (WW-3046) Make "redirect" result support params (passed from <param>), like "redirectAction" does In-Reply-To: <737476419.1237386964146.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3046?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jason Pyeron updated WW-3046: ----------------------------- Attachment: struts-2.1.6-paramspatch.tgz A patched and recompiled ServletActionRedirectResult.class and ServletRedirectResult.class against 2.1.6 > Make "redirect" result support params (passed from <param>), like "redirectAction" does > --------------------------------------------------------------------------------------- > > Key: WW-3046 > URL: https://issues.apache.org/struts/browse/WW-3046 > Project: Struts 2 > Issue Type: Bug > Components: Other > Affects Versions: 2.1.6 > Reporter: Musachy Barroso > Fix For: 2.1.7 > > Attachments: struts-2.1.6-paramspatch.tgz > > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Thu Apr 02 10:34:25 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 17077 invoked from network); 2 Apr 2009 10:34:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 10:34:25 -0000 Received: (qmail 41071 invoked by uid 500); 2 Apr 2009 10:34:24 -0000 Delivered-To: danielmartin@example.com Received: (qmail 40982 invoked by uid 500); 2 Apr 2009 10:34:24 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 40974 invoked by uid 99); 2 Apr 2009 10:34:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 10:34:24 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 10:34:23 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 49713234C48C for <danielmartin@example.com>; Thu, 2 Apr 2009 03:34:03 -0700 (PDT) Message-ID: <198482428.1238668443299.JavaMail.jira@brutus> Date: Thu, 2 Apr 2009 03:34:03 -0700 (PDT) From: "Chris Mawata (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Created: (WW-3070) Documentation for <s:if> tag is innacurate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org Documentation for <s:if> tag is innacurate ------------------------------------------ Key: WW-3070 URL: https://issues.apache.org/struts/browse/WW-3070 Project: Struts 2 Issue Type: Bug Components: Documentation Affects Versions: 2.1.6 Reporter: Chris Mawata Priority: Minor At http://struts.apache.org/2.x/docs/if.html Documentation implies you can have multiple 'Else' tags. Change description from Perform basic condition flow. 'If' tag could be used by itself or with 'Else If' Tag and/or single/multiple 'Else' Tag. to Perform basic condition flow. 'If' tag could be used by itself or can be followed by zero or more 'Else if' Tags followed by zero or one 'Else' Tag. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Thu Apr 02 11:23:24 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 36069 invoked from network); 2 Apr 2009 11:23:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 11:23:24 -0000 Received: (qmail 95940 invoked by uid 500); 2 Apr 2009 11:23:24 -0000 Delivered-To: danielmartin@example.com Received: (qmail 95862 invoked by uid 500); 2 Apr 2009 11:23:23 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 95854 invoked by uid 99); 2 Apr 2009 11:23:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 11:23:23 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 11:23:22 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 925ED234C051 for <danielmartin@example.com>; Thu, 2 Apr 2009 04:23:02 -0700 (PDT) Message-ID: <1750617974.1238671382597.JavaMail.jira@brutus> Date: Thu, 2 Apr 2009 04:23:02 -0700 (PDT) From: "Philip Luppens (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Resolved: (WW-3070) Documentation for <s:if> tag is innacurate In-Reply-To: <198482428.1238668443299.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Philip Luppens resolved WW-3070. -------------------------------- Resolution: Fixed Fixed. Thanks for reporting. > Documentation for <s:if> tag is innacurate > ------------------------------------------ > > Key: WW-3070 > URL: https://issues.apache.org/struts/browse/WW-3070 > Project: Struts 2 > Issue Type: Bug > Components: Documentation > Affects Versions: 2.1.6 > Reporter: Chris Mawata > Priority: Minor > > At > http://struts.apache.org/2.x/docs/if.html > Documentation implies you can have multiple 'Else' tags. > Change description from > Perform basic condition flow. 'If' tag could be used by itself or with 'Else If' Tag and/or single/multiple 'Else' Tag. > to > Perform basic condition flow. 'If' tag could be used by itself or can be followed by zero or more 'Else if' Tags followed by zero or one 'Else' Tag. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Thu Apr 02 11:34:27 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 39995 invoked from network); 2 Apr 2009 11:34:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 11:34:27 -0000 Received: (qmail 12686 invoked by uid 500); 2 Apr 2009 11:34:27 -0000 Delivered-To: danielmartin@example.com Received: (qmail 12604 invoked by uid 500); 2 Apr 2009 11:34:26 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 12596 invoked by uid 99); 2 Apr 2009 11:34:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 11:34:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 11:34:26 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id CAD8D234C051 for <danielmartin@example.com>; Thu, 2 Apr 2009 04:34:04 -0700 (PDT) Message-ID: <172431876.1238672044829.JavaMail.jira@brutus> Date: Thu, 2 Apr 2009 04:34:04 -0700 (PDT) From: "Chris Mawata (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Commented: (WW-3070) Documentation for <s:if> tag is innacurate In-Reply-To: <198482428.1238668443299.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45824#action_45824 ] Chris Mawata commented on WW-3070: ---------------------------------- That was fast! Thanks!. I am new to the process -- is that the correct way to report documentation nits? Chris > Documentation for <s:if> tag is innacurate > ------------------------------------------ > > Key: WW-3070 > URL: https://issues.apache.org/struts/browse/WW-3070 > Project: Struts 2 > Issue Type: Bug > Components: Documentation > Affects Versions: 2.1.6 > Reporter: Chris Mawata > Priority: Minor > > At > http://struts.apache.org/2.x/docs/if.html > Documentation implies you can have multiple 'Else' tags. > Change description from > Perform basic condition flow. 'If' tag could be used by itself or with 'Else If' Tag and/or single/multiple 'Else' Tag. > to > Perform basic condition flow. 'If' tag could be used by itself or can be followed by zero or more 'Else if' Tags followed by zero or one 'Else' Tag. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Thu Apr 02 11:46:42 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 47777 invoked from network); 2 Apr 2009 11:46:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 11:46:42 -0000 Received: (qmail 24930 invoked by uid 500); 2 Apr 2009 11:46:42 -0000 Delivered-To: danielmartin@example.com Received: (qmail 24861 invoked by uid 500); 2 Apr 2009 11:46:41 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 24853 invoked by uid 99); 2 Apr 2009 11:46:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 11:46:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 11:46:40 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id 17825234C003 for <danielmartin@example.com>; Thu, 2 Apr 2009 04:46:19 -0700 (PDT) Message-ID: <1868627083.1238672778359.JavaMail.jira@brutus> Date: Thu, 2 Apr 2009 04:46:18 -0700 (PDT) From: "Philip Luppens (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Commented: (WW-3070) Documentation for <s:if> tag is innacurate In-Reply-To: <198482428.1238668443299.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3070?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45825#action_45825 ] Philip Luppens commented on WW-3070: ------------------------------------ You could also ping someone on the mailinglist or irc channel, but if you put it in the issue tracker then we cannot ignore it (we often seem to try, though) ;-) So yes, it's perfect. Thanks again. > Documentation for <s:if> tag is innacurate > ------------------------------------------ > > Key: WW-3070 > URL: https://issues.apache.org/struts/browse/WW-3070 > Project: Struts 2 > Issue Type: Bug > Components: Documentation > Affects Versions: 2.1.6 > Reporter: Chris Mawata > Priority: Minor > > At > http://struts.apache.org/2.x/docs/if.html > Documentation implies you can have multiple 'Else' tags. > Change description from > Perform basic condition flow. 'If' tag could be used by itself or with 'Else If' Tag and/or single/multiple 'Else' Tag. > to > Perform basic condition flow. 'If' tag could be used by itself or can be followed by zero or more 'Else if' Tags followed by zero or one 'Else' Tag. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Thu Apr 02 13:26:30 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 13707 invoked from network); 2 Apr 2009 13:26:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Apr 2009 13:26:30 -0000 Received: (qmail 21321 invoked by uid 500); 2 Apr 2009 13:26:30 -0000 Delivered-To: danielmartin@example.com Received: (qmail 21262 invoked by uid 500); 2 Apr 2009 13:26:29 -0000 Mailing-List: contact danielmartin@example.com; run by ezmlm Precedence: bulk List-Help: <mailto:danielmartin@example.com> List-Unsubscribe: <mailto:danielmartin@example.com> List-Post: <mailto:danielmartin@example.com> List-Id: <issues.struts.apache.org> Reply-To: danielmartin@example.com Delivered-To: mailing list danielmartin@example.com Received: (qmail 21254 invoked by uid 99); 2 Apr 2009 13:26:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 13:26:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [83.161.120.155] (HELO brutus.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Apr 2009 13:26:27 +0000 Received: from brutus (localhost [83.161.120.155]) by brutus.apache.org (Postfix) with ESMTP id C0824234C051 for <danielmartin@example.com>; Thu, 2 Apr 2009 06:26:06 -0700 (PDT) Message-ID: <1712416372.1238678766772.JavaMail.jira@brutus> Date: Thu, 2 Apr 2009 06:26:06 -0700 (PDT) From: "Musachy Barroso (JIRA)" <danielmartin@example.com> To: danielmartin@example.com Subject: [jira] Updated: (WW-3026) Struts 2 needs to log errors in the processing of the struts.xml configuration file (suggested fix included). In-Reply-To: <212299691.1236490082564.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 2265bf7ad70cb93affdfde3e15287371 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/struts/browse/WW-3026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Musachy Barroso updated WW-3026: -------------------------------- Fix Version/s: 2.1.7 > Struts 2 needs to log errors in the processing of the struts.xml configuration file (suggested fix included). > ------------------------------------------------------------------------------------------------------------- > > Key: WW-3026 > URL: https://issues.apache.org/struts/browse/WW-3026 > Project: Struts 2 > Issue Type: Improvement > Components: Core Actions, Core Interceptors > Affects Versions: 2.1.6 > Environment: Struts core. > Reporter: Christian Wolfgang Stone > Fix For: 2.1.7 > > > I have logged a few suggested spots to log errors with the struts.xml configuration processing. A number of times people have complained that struts does not do enough to log errors with request or configuration processing. I believe this is really affecting the adoption of struts 2. Currently, if there is a typo or misconfigured action in the struts 2 config, errors are not logged (not even in with logging set to debug). You only know that the context will not start because errors prevented it from doing so. My solution is to report when an action is misconfigured. There are a couple of spots that I suggest based on my own debugging of the code. > org.apache.struts2.dispatcher.filterDispatcher (line 194) > public void init(FilterConfig filterConfig) throws ServletException { > try { > this.filterConfig = filterConfig; > initLogging(); > dispatcher = createDispatcher(filterConfig); > dispatcher.init(); > dispatcher.getContainer().inject(this); > staticResourceLoader.setHostConfig(new FilterHostConfig(filterConfig)); > } finally { > ActionContext.setContext(null); > } > } > +++++ add catch clause before final (will log a message like - "Unable to find interceptor class referenced by ref-name admin - interceptor-ref - file:/source/websites/mdff/trunk/build/exploded/WEB-INF/classes/struts-admin-member.xml:107:44" This message is EXTREMELY HELPFUL :) > } catch (ConfigurationException e) { > LOG.error("Processing of struts2 configuration failed. Reason: "+e.toString(),e); > } > ++++ > -or- in com.opensymphony.xwork2.config.ConfigurationManager.java line 57 > public synchronized Configuration getConfiguration() { > if (configuration == null) { > setConfiguration(new DefaultConfiguration(defaultFrameworkBeanName)); > try { > configuration.reloadContainer(getContainerProviders()); > } catch (ConfigurationException e) { > setConfiguration(null); > throw new ConfigurationException("Unable to load configuration.", e); > } > } else { > conditionalReload(); > } > return configuration; > } > ++++ add LOG error before killing the configuration file! Obviously > LOG.error("Unable to load configuration."+e.toString(),e); > === > I am sure there are other places. Anyone needing to do a bunch of work with a large configuration file -- I have about 200 actions, and am regularly moving actions from one file to the next and sharing the files between projects (using spring to override the action classes) -- will deeply appreciate this change. Nothing is more depressing than to suddenly have 0 notifications as to why the context won't load knowing that you are including many many changes and knowing that somewhere in one package the name of the interceptor-ref was changed from admin to adminStack, and another files action inheriting this package still refers to the old name! > By the way... if you want another developer I may be able to put some time in... > Otherwise, I thank you all for this tool. It really has made my work better... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. From issuesdanielmartin@example.com Thu Apr 02 14:08:31 2009 Return-Path: <issuesdanielmartin@example.com> Delivered-To: danielmartin@example.com Received: (qmail 50806 invoked from network); 2 Apr 2009 14:08:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org
{'source': 'Apache Software Foundation Public Mail Archives'}