http://www.itonguard.com/20080605/disable-warning-parameters-invalid-chunk-ignored-messages-in-tomcat-log/
[quote]
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 ammount 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:
# more conf/Catalina/localhost/ROOT.xml
<Context docBase=”/clients/client1″
privileged=”true” antiResourceLocking=”false” antiJARLocking=”false”
swallowOutput=”true”>
</Context>[/quote]
[quote]
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 ammount 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:
# more conf/Catalina/localhost/ROOT.xml
<Context docBase=”/clients/client1″
privileged=”true” antiResourceLocking=”false” antiJARLocking=”false”
swallowOutput=”true”>
</Context>[/quote]
本文介绍如何通过修改logging.properties文件来禁用Tomcat中关于无效参数格式的警告信息,并提供减少catalina.out文件中信息量的方法。
4913

被折叠的 条评论
为什么被折叠?



