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

Chris Cranford commented on WW-4500:
------------------------------------

That seems odd since the package "/reporting" is extending the struts-default 
package which includes the {{defaultStack}}.  Additionally, if redefining is 
necessary; wouldn't the same be solved by using:
{noformat}
<struts>
  <include file="struts-default.xml"/>
  <!-- package stuff here -->
</struts>
{noformat}


> When calling action defined in struts2 plugin, DeprecationInterceptor prints 
> warnings.
> --------------------------------------------------------------------------------------
>
>                 Key: WW-4500
>                 URL: https://issues.apache.org/jira/browse/WW-4500
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Interceptors
>    Affects Versions: 2.3.24
>            Reporter: Chris Cranford
>             Fix For: 2.3.x
>
>
> Created a simple JAR that contains the following struts-plugin XML:
> {noformat}
> <struts>
>   <package name="reporting-default" namespace="/reporting" 
> extends="struts-default">
>     <default-action-ref name="index" />
>     <action name="index" class="actions.IndexAction">
>       <result>/reporting/index.jsp</result>
>     </action>
>   </package>
> </struts>
> {noformat}
> The action simply extends {{ActionSupport}} with no logic.  When pointing the 
> browser to the /reporting/index.do action, the following is shown in the logs:
> {noformat}
> 2015-05-18 12:20:59,023 DEBUG 
> [org.apache.struts2.interceptor.DeprecationInterceptor]: 
> *******************************************************************************
> **                                                                           
> **
> **                               WARNING                                     
> **
> **                YOU USE DEPRECATED / UNKNOWN CONSTANTS                     
> **
> **                                                                           
> **
> **  -> struts.convention.action.name.lowercase                               
> **
> **  -> struts.convention.default.parent.package                              
> **
> **  -> struts.class.reloading.watchList                                      
> **
> **  -> struts.convention.actionConfigBuilder                                 
> **
> **  -> struts.convention.relative.result.types                               
> **
> **  -> struts.convention.result.path                                         
> **
> **  -> struts.convention.package.locators                                    
> **
> **  -> struts.convention.action.alwaysMapExecute                             
> **
> **  -> struts.convention.resultMapBuilder                                    
> **
> **  -> struts.convention.action.name.separator                               
> **
> **  -> struts.convention.action.fileProtocols                                
> **
> **  -> struts.convention.classes.reload                                      
> **
> **  -> struts.convention.exclude.parentClassLoader                           
> **
> **  -> struts.class.reloading.acceptClasses                                  
> **
> **  -> struts.convention.package.locators.disable                            
> **
> **  -> struts.convention.exclude.packages                                    
> **
> **  -> struts.convention.result.flatLayout                                   
> **
> **  -> struts.convention.action.disableScanning                              
> **
> **  -> struts.class.reloading.reloadConfig                                   
> **
> **  -> struts.scope.followsConvention                                        
> **
> **  -> struts.convention.conventionsService                                  
> **
> **  -> struts.convention.action.mapAllMatches                                
> **
> **  -> struts.convention.package.locators.basePackage                        
> **
> **  -> struts.convention.actionNameBuilder                                   
> **
> **  -> struts.convention.action.checkImplementsAction                        
> **
> **  -> struts.convention.redirect.to.slash                                   
> **
> **  -> struts.convention.action.suffix                                       
> **
> **  -> struts.convention.interceptorMapBuilder                               
> **
> *******************************************************************************
> {noformat}
> There should be no reason that I can tell why this deprecation warning should 
> even be spammed on each action invocation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to