struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <>
Subject Re: Disabling Struts warning messages in the console
Date Thu, 18 Feb 2016 12:40:54 GMT
I thought also to the log4j.
But , perhaps, Murat Balkan wants cancel only this one, 
and not all the other warnings ?

    Le Jeudi 18 février 2016 9h05, Christoph Nenning <>
a écrit :

 > Hi,
> I'd like to disable the warning messages in the console log 
> (catalina.out) like
> WARNING: Could not find action or result: /
> There is no Action mapped for namespace [/] and action name
> These visits are generated by the bots and they are trying to reach 
> a previous action that does not exist anymore.
> How can I do this?
> Thanks
> Murat

That log message is generated by class


(at least for struts 2.5, in older versions it may be different)

You can configure your logging library to show only errors for that class, 
e.g. for log4j:

<Logger name="org.apache.struts2.dispatcher.Dispatcher" level="error">

You may want to have a look here:


This Email was scanned by Sophos Anti Virus

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message