WLS Web Application: Error page configuration! (Doc ID 1300770.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version 10.3 and later
Information in this document applies to any platform.



Symptoms

Using error-page tags to configure custom error pages for specific error codes in the 'web.xml', causes a problem where the custom error page isn't loaded properly.

For example after configuring the error page as below,

<error-page>
  <error-code>404</error-code>
  <error-location>/error/error.html</error-location>
</error-page>


and on trying to access the URL
http://<hostname>:<port>/Webapp/invalidjspname.jsp
we find that it doesn't redirect to error.html as per the configuration.

Changes

N/A

Cause

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 hundreds of Community platforms