I've setup Tomcat 3.1 with Apache on my web server to serve JSP pages. It works well for Java Servlets and JSP pages.

swarraj kulkarni

If you look the code of the Tomcat's JSPServlet.java, you will find the following code in the service method:

try{
//look for the jsp file
} catch (FileNotFoundException ex) {
response.sendError(HttpServletResponse.SC_NOT_FOUND,
Constants.getString("jsp.error.file.not.found", new Object[] { ex.getMessage() }));

As you can see that the FileNotFoundException directly works with the response object and the message is taken from the messages.properties files to send it directly to the caller (browser). Also I did not find any other mechanism in the Tomcat's configuration to suppress the error messages. So it will not be possible to suppress this message.

We will have to look at this message as great debugging tool :O)
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact