Tomcat 7 by Dissection: Handling of exceptions and error pages

NOTE: “Tomcat 7 by Dissection” is a collection of blogs pinpointing, and detailing some Tomcat 7 functionalities on code level . The blogs are meant as code “footprints” for the author.

I saw this email notification from Tomcat Developer mailing list about a Tomcat 7 bug (51106) and somewhat got interested in it which looked like something I could fix. It was reported by someone else. According to the description, TC7 returns the error page of the broader or broadest exception first.

So, the error page selection based on the exception type can be found in StandardHostValve.java.


TC7 Rev 1097024

Karl San Gabriel

Karl San Gabriel

Java and Enterprise Technologies Expert