Java

Remove struts mapping messages from console

Posted on Updated on

You might be wandering that you have configured struts correctly but you still see some debug messages on the console related to struts config while starting any application server. Dont worry, struts is configured correctly. It is some other configurations that is displaying this message.  Read below to solve your issue.

It is due to some excessive code written in log4j configuration of your project. When the server runs, the debug message shown is something like below:

 

Convert string ‘/’ to class ‘java.lang.String’
Using converter ConverterFacade[StringConverter[UseDefault=true]]
Converting ‘String’ value ‘/’ to type ‘String’
setSimpleProperty: Invoking method public void org.apache.struts.config.ActionConfig.setInput(java.lang.String) with value / (class java.lang.String)
setProperty(ActionConfig[cancellable=false,path=null,validate=true,input=/,scope=session, parameter, methodName)
Target bean = ActionConfig[cancellable=false,path=null,validate=true,input=/,scope=session
Target name = parameter
Convert string ‘methodName’ to class ‘java.lang.String’
Using converter ConverterFacade[StringConverter[UseDefault=true]]
Converting ‘String’ value ‘methodName’ to type ‘String’
setSimpleProperty: Invoking method public void org.apache.struts.config.ActionConfig.setParameter(java.lang.String) with value methodName (class java.lang.String)
setProperty(ActionConfig[cancellable=false,path=null,validate=true,input=/,parameter=methodName,scope=session, scope, request)
Target bean = ActionConfig[cancellable=false,path=null,validate=true,input=/,parameter=methodName,scope=session
Target name = scope
Convert string ‘request’ to class ‘java.lang.String’
Using converter ConverterFacade[StringConverter[UseDefault=true]]
Converting ‘String’ value ‘request’ to type ‘String’
setSimpleProperty: Invoking method public void org.apache.struts.config.ActionConfig.setScope(java.lang.String) with value request (class java.lang.String)
setProperty(ActionConfig[cancellable=false,path=null,validate=true,input=/,parameter=methodName,scope=request, name, )
Target bean = ActionConfig[cancellable=false,path=null,validate=true,input=/,parameter=methodName,scope=request
Target name = name
Convert string ” to class ‘java.lang.String’
Using converter ConverterFacade[StringConverter[UseDefault=true]]
Converting ‘String’ value ” to type ‘String’
setSimpleProperty: Invoking method public void org.apache.struts.config.ActionConfig.setName(java.lang.String) with value (class java.lang.String)
setProperty(ActionConfig[cancellable=false,path=null,validate=true,input=/,name=,parameter=methodName,scope=request, path, /FetchMTRApprovedInfoAction)
Target bean = ActionConfig[cancellable=false,path=null,validate=true,input=/,name=,parameter=methodName,scope=request
Target name = path
Convert string ‘/FetchMTRApprovedInfoAction’ to class ‘java.lang.String’
Using converter ConverterFacade[StringConverter[UseDefault=true]]
Converting ‘String’ value ‘/FetchMTRApprovedInfoAction’ to type ‘String’
setSimpleProperty: Invoking method public void org.apache.struts.config.ActionConfig.setPath(java.lang.String) with value /FetchMTRApprovedInfoAction (class java.lang.String)
Target bean = ActionConfig[cancellable=false,path=/FetchMTRApprovedInfoAction,validate=true,input=/,name=,parameter=methodName,scope=request
Target name = type
Fire begin() for SetNextRule[methodName=addActionConfig, paramType=org.apache.struts.config.ActionConfig]
ignorableWhitespace(
)
startElement(,forward,forward)
Pushing body text ”
New match=’struts-config/action-mappings/action/forward’
Fire begin() for FactoryCreateRule[className=null, attributeName=null, creationFactory=org.apache.struts.config.ActionForwardFactory@ba5c7a]
[FactoryCreateRule]{struts-config/action-mappings/action/forward} New org.apache.struts.action.ActionForward
Fire begin() for SetPropertiesRule[]
[SetPropertiesRule]{struts-config/action-mappings/action/forward} Setting property ‘name’ to ‘success’
[SetPropertiesRule]{struts-config/action-mappings/action/forward} Setting property ‘path’ to ‘/Pages/DoT/MicroTradeRegistration/ApprovedPage.jsp’
[SetPropertiesRule]{struts-config/action-mappings/action/forward} Set org.apache.struts.action.ActionForward properties
BeanUtils.populate(ForwardConfig[name=null,path=null,redirect=false,module=null,extends=null,catalog=null,command=null], {name=success, path=/Pages/DoT/MicroTradeRegistration/ApprovedPage.jsp})
setProperty(ForwardConfig[name=null,path=null,redirect=false,module=null,extends=null,catalog=null,command=null], name, success)
Target bean = ForwardConfig[name=null,path=null,redirect=false,module=null,extends=null,catalog=null,command=null]
Target name = name
Convert string ‘success’ to class ‘java.lang.String’
Using converter ConverterFacade[StringConverter[UseDefault=true]]
Converting ‘String’ value ‘success’ to type ‘String’
setSimpleProperty: Invoking method public void org.apache.struts.config.ForwardConfig.setName(java.lang.String) with value success (class java.lang.String)
setProperty(ForwardConfig[name=success,path=null,redirect=false,module=null,extends=null,catalog=null,command=null], path, /Pages/DoT/MicroTradeRegistration/ApprovedPage.jsp)
Target bean = ForwardConfig[name=success,path=null,redirect=false,module=null,extends=null,catalog=null,command=null]
Target name = path
Convert string ‘/Pages/DoT/MicroTradeRegistration/ApprovedPage.jsp’ to class ‘java.lang.String’
Using converter ConverterFacade[StringConverter[UseDefault=true]]
Converting ‘String’ value ‘/Pages/DoT/MicroTradeRegistration/ApprovedPage.jsp’ to type ‘String’ Read the rest of this entry »