[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4790
  • Last Modified:

Redirecting HTTP 404 error to Customize page in weblogic Portal

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
0
cnu_a
Asked:
cnu_a
  • 2
1 Solution
 
boxy73Commented:
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.
0
 
cnu_aAuthor 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
0
 
boxy73Commented:
Congratulations! Sometimes it's hard to remember you're using a different webserver apart from the app server :-)
0
 
Computer101Commented:
PAQed, with points refunded (250)

Computer101
E-E Admin
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now