Redirecting HTTP 404 error to Customize page in weblogic Portal

cnu_a
cnu_a used Ask the Experts™
on
Hi,

I am trying to redirect HTTP 404 error page to customize page "Error.html", but it is not working. Can anyone help me out. Error.html is located in portal root directory.

Following is the code snippet for your reference:

Added following lines to the web.xml
  <error-page>
    <error-code>404</error-code>
    <location>Error.html</location>
  </error-page>

Thanks in advance,
Srinivas
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
If your error page is located in the root directory, try using /Error.html. Maybe weblogic is looking for that page in the same folder where the page that launches the error is supposed to be.

Author

Commented:
Hi,
I have solved this on my own. My project requirement is to show a customized error page, when the appilcation server is down. I am using apache as webserver and I have added a error page in apache and redirecting the requests to apachee , when no reaponse from weblogic server.

Thanks,
CNU

Commented:
Congratulations! Sometimes it's hard to remember you're using a different webserver apart from the app server :-)
PAQed, with points refunded (250)

Computer101
E-E Admin

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial