Topic
  • 1 reply
  • Latest Post - ‏2013-03-18T12:39:49Z by Sunit
comerun
comerun
2 Posts

Pinned topic Websphere custom error page not working

‏2013-03-18T04:10:57Z |
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?

Can anyone please help me out, thanks,
Updated on 2013-03-18T12:39:49Z at 2013-03-18T12:39:49Z by Sunit
  • Sunit
    Sunit
    197 Posts

    Re: Websphere custom error page not working

    ‏2013-03-18T12:39:49Z  
    Is this custom 404 page in your war and accessible using the context root + path?

    --Sunit