This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes error page under WEB-INF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "error page under WEB-INF" Watch "error page under WEB-INF" New topic
Author

error page under WEB-INF

Hongli Li
Ranch Hand

Joined: Oct 29, 2006
Posts: 124
Hi guys,

I have this snippets inside my web.xml


error 404 workes fine, but when there is an internal server error(500), tomcat doesn't seem to pick the error.jsp defined in the web.xml. I'm sure the file(error.jsp) is in the right folder and there is no typo in web.xml. when I move it outside of WEB-INF, it works, anyone knows why.


thanks
Hongli


Do you know why this cup is useful? Because it is empty.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error page under WEB-INF
 
Similar Threads
tomcat 5 and error page
Sample web.xml.. may be useful for SCWCD Ranchers
tomcat 5 and error page
how to trap 404 error
Tomcat settings in an production environment?