Switching from apache-tomcat-8.5.23
to apache-tomcat-8.5.50
configuring the ErrorReportValve
is not working.
I have set below in 8.5.23 and it worked ( Tomcat does not show server info or error).
<Valve className="org.apache.catalina.valves.ErrorReportValve"
showReport="false"
showServerInfo="false"/>
After upgrade to 8.5.50
the tomcat shows server info and report, even I have set it to false
This is the sample stack trace and server info which is shown by Tomcat
Any comments?
You should set the configuration on the <Host>
section in file server.xml.
<Host autoDeploy="false"
appBase="webapps"
name="localhost"
unpackWARs="false">
<Valve className="org.apache.catalina.valves.ErrorReportValve"
showReport="false"
showServerInfo="false"/>
...
</Host>
Extracted from this Adobe ColdFusion reference.