Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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.

share|improve this question
Does /error.jsp exist? – mahnsc Jun 16 '11 at 11:59

I believe that at the top of your .jsp pages you also need to add something like this:

<%@ page errorPage="errorpage.jsp" %>
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.