Do you know if there is any restriction applied from tomcat 9.0.5X for displaying customized HTTP error page if any H500 or 400 error occurs in application ?
I have configured the below line (error-page tag) in web.xml and handled it default controller to redirect to below given jsp page in case of any HTTP related error.
But in my case, it is not happening with tomcat 9.0.5X; rather it shows the default “HTTP 500 error page”. However the same code works in my local tomcat which is of version 9.0.7-17.
I have found couple of article where it says tomcat 9 has improved way of handling the HTTP error code where the server.xml changes are required. Is this really required or not needed ?
Please assist me with this case.
Tomcat is not redirecting to 400 bad request custom error page
https://tomcat.apache.org/tomcat-9.0-doc/config/valve.html#Error_Report_Valve
<error-page>
<location>/WEB-INF/common/Error.jsp</location>
</error-page>
I would need the custom error page configured in web.xml to be displayed; instead it is showing default HTTP 500 error page.