Is there a way to configure Tomcat to die automatically if there’s an error loading a web app (i.e. the app throws an exception), or if it can’t find any apps at all? I’d rather my users get a connection problem than a blank white page.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could do
instead of
However, when you deploy this to a 3rd party or shared host which allows this, the serveradmin isn’t going to be happy with this.
I’d rather review your model/view/controller logic so that the enduser get a (custom) HTTP 500 error page instead of a blank page. Are you sure you aren’t writing Java code in JSP files? Throwing exceptions inside JSP files may namely cause this.