Disable public Tomcat6 stack trace

Posted by The NinjaSysadmin on Server Fault See other posts from Server Fault or by The NinjaSysadmin
Published on 2011-05-19T16:11:06Z Indexed on 2014/08/24 22:23 UTC
Read the original article Hit count: 349

Filed under:

Can anyone advise me how I can go about disabling Tomcat6 from displaying stacktrace output to the browser?

Tomcat: 6.0.29

I have made the following changes to /opt/apache-tomcat-6.0.29/conf/web.xml

 <error-page>
   <exception-type>java.lang.Throwable</exception-type>
   <location>/error.jsp</location>
 </error-page>

I'm told putting this in place will give a white screen if the file doesn't exist, however I'm getting stack traces to the screen.

© Server Fault or respective owner

Related posts about tomcat6