Al Rodgers

Greenhorn
+ Follow
since Mar 28, 2012
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Al Rodgers

A variation on the above approach is to make your custom valve class extend Tomcat's org.apache.catalina.valves.ErrorReportValve and just override the report method. Copy the existing implementation of this method from the Tomcat source then adapt it to write your custom error page HTML as desired (e.g. excluding the container description and exception stack trace for security-sensitive environments).

Finally, configure this valve on the host as described previously, e.g.
11 years ago