My Oracle Support Banner

Cannot Customize the 404, 403 and 503 Error Pages Using JSPX in WebCenter Portal Application (Doc ID 1570086.1)

Last updated on OCTOBER 16, 2023

Applies to:

Oracle WebCenter Portal - Version 11.1.1.5.0 to 11.1.1.9.8 [Release 11g]
Information in this document applies to any platform.

Symptoms

In WebCenter Portal Application, when trying to customize the 404 , 403 and 503 error pages using a jspx page, the jspx as an error page is not displayed. A blank is displayed instead.

The jspx page is referred to in web.xml by "error-page" tag.

The issue can be reproduced with a simple 2EE Web Application in JDeveloper:

1. Create a new J2EE Web Application in JDev 11.1.1.6

2. Create the following pages:

JSF: Hello.jspx

HTML: html_error.html

"This is HTML Error Page"

JSF: jsf_error.jspx

"This is JSF Error Page"

3. Set the error page for 404 to the HTML page in web.xml:

<error-page>

<error-code>404</error-code>

<location>/html_error.html</location>

</error-page> 

4. Run the application, when trying to access the incorrect url:

e.g:

http://<HOST>:<PORT>/Application16-ViewController-context-root/faces/Hello1.jspx?

You can see the HTML Error page

"This is HTML Error Page" 

5. Update the web.xml and change the error page of 404 to a jsf page:

<error-page>

<error-code>404</error-code>

<location>/jsf_error.jspx</location>

</error-page> 

6. Run the application, if you try to access the incorrect url:

e.g:

http://<HOST>:<PORT>/Application16-ViewController-context-root/faces/Hello1.jspx?

A blank page is displayed. This is the same as what's happening in WebCenter Application. 

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.