[ 
https://issues.apache.org/jira/browse/WW-3511?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919042#action_12919042
 ] 

John Lindal commented on WW-3511:
---------------------------------

I put in some more debugging statements into BeanSelectionProvider, 
XmlConfigurationProvider,and LegacyPropertiesConfigurationProvider.  I have 
confirmed that org/apache/struts2/default.properties is loaded after 
XmlConfigurationProvider loads struts.xml, and default.properties sets 
struts.devMode=false, so this overrides the config setting in struts.xml.  As 
it turns out, this is caused by extensions that I built on top of Struts2.  I 
will mark this ticket as invalid.

Thanks again for the patch!

> struts.devMode never set to true and never injected
> ---------------------------------------------------
>
>                 Key: WW-3511
>                 URL: https://issues.apache.org/jira/browse/WW-3511
>             Project: Struts 2
>          Issue Type: Bug
>          Components: XML Configuration
>    Affects Versions: 2.2.1
>            Reporter: John Lindal
>            Assignee: Lukasz Lenart
>            Priority: Minor
>         Attachments: WW-3511.patch
>
>
> I add this to my struts.xml file:
>       <constant name="struts.devMode" value="true" />
> but it has no effect.  In 
> org.apache.struts2.config.BeanSelectionProvider.register(), 
> props.getProperty(StrutsConstants.STRUTS_DEVMODE) returns "false".  In 
> ParametersInterceptor, setDevMode() is never called.  When I change 
> ParametersInterceptor.setDevMode() to not be static, it is called, but the 
> value passed is "false".

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to