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 NOVEMBER 10, 2016

Applies to:

Oracle WebCenter Portal - Version 11.1.1.5.0 and later
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://localhost:7101/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://localhost:7101/Application16-ViewController-context-root/faces/Hello1.jspx?

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

 

 

 

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!


In this Document
Symptoms
Cause
Solution
References


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