Hi Experts, We have a requirement from a customer, where in case of 404, where someone is putting an invalid url, instead of showing the default error, we should be showing a custom message.
Is this possible? I have searched and found couple of solutions similar to https://stackoverflow.com/questions/27859626/tomcat-server-change-default-http-404 but these did not work, these work at the app level, but not globally on tomcat level. e.g. if i have an app called myapp http://<server address>/myapp/<invalid path> This works and it gets redirected to custom page but http://<server address>/<invalid App>, This does not work and 404 is shown, Is there someway we can handle errors at global level on tomca.t We are using tomcat 9.0.24. Thanks for your help. Best Sumit Bhardwaj