Disable “WARNING: Parameters: Invalid chunk ignored.” messages in Tomcat log

  1. Home
  2. Blog
  3. Disable “WARNING: Parameters: Invalid chunk ignored.” messages in Tomcat log

Disable “WARNING: Parameters: Invalid chunk ignored.” messages in Tomcat log

To disable this message you need to modify logging properties file.
If you have logging.properties in your tomcat/conf folder then make changes there. Otherwise modify jre’s file.
Add to the end of /usr/local/java/jre/lib/logging.properties this line:
org.apache.tomcat.util.http.Parameters.level = SEVERE
Restart tomcat.
The reason for this message is some problem with url’s parameters format, like && in the begining of parameters etc. It is harmless, tomcat will process parameters anyway.
Another nice feature to reduce amount of information in catalina.out file is to redirect system output from catalina.out to web application log. Add swallowOutput=”true” to the context like this:
[root@mytomcat]# more conf/Catalina/localhost/ROOT.xml
<Context docBase=”/demos/demo1″ privileged=”true” antiResourceLocking=”false” ntiJARLocking=”false” swallowOutput=”true”> </Context>
Let's Share

Write a Reply or Comment

Show Buttons
Hide Buttons