I have been struggling to get the Websphere custom error page for the errors such as 404 (File not found).
I have added the following to my web.xml under /WEB-INF/
<error-page> <error-code>404</error-code> <location>/html/error404/error404.html</location> </error-page>
and also created a right path /html/error404 and added the error404.html with a warning message to be displayed when user request a file which does not exist.
I have also restarted my WAS and also the browser, but I still get the default error message:
Error 404: SRVE0190E: File not found: /xyz.htm
and not my custom html error page.
What am I missing here?
Do I also need any struts configurations?
Can anyone please help me out, thanks,