Currently working on a legacy Java-web project (Java 8, Tomcat 7, mix of good ol' JSP's, JSF & various Servlet stuff e.g. web.xml v2.5)
I'd like to be able to let specific Java technical exceptions flow until Tomcat catches them, in order to use its built-in default error pages (btw I can't find them in the source code: https://github.com/apache/tomcat/find/7.0.x )
Note: i DO NOT want to customize these error pages.
The only hits I can find are either to redirect to some Servelt I have to develop & by myself e.g. https://www.tutorialspoint.com/servlets/servlets-exception-handling or using custom pages e.g. https://www.codejava.net/java-ee/servlet/how-to-handle-error-in-web-xml-for-java-web-applications
Also found this chapter from Red Hat's JBoss Seam platform, which seems really interesting, esp. the 2nd and 3rd code extracts:
<exception class="java.lang.UnsupportedOperationException">
<http-error error-code="501">
<message>The requested operation is not supported</message>
</http-error>
</exception>
<exception class="my.CustomException" log="false">
<http-error error-code="503">
<message>Service not available: #{org.jboss.seam.handledException.message}</message>
</http-error>
</exception>
But hey, I can't use this... :-/
So how can I mimic this config?