error page Archive

Not able to configure Error Page?

Customers have often reported issues that they are not able to configure error page even though the do the configuration in the web.xml correctly

<?xml version=’1.0′ encoding=’UTF-8′?>
<web-app xmlns=”” xmlns:xsi=””>


<%@page isErrorPage=”true” contentType=”text/html” %>
Request that failed: ${pageContext.errorData.requestURI}
<br />
Status code: ${pageContext.errorData.statusCode}
<br />
Exception: ${pageContext.errorData.throwable}
<br />
String s = null;

When I deployed this application on Weblogic Server and tried to acces the application. I got null pointer exception causing server to send HTTP 500 Response
with Exception

at jsp_servlet.__index._jspService(
at weblogic.servlet.jsp.JspBase.service(
at weblogic.servlet.internal.StubSecurityHelper$
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecuri
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.jav
Truncated. see log file for complete stacktrace

But since we had done the error page configuration, we expected to see our custom error page. This was not the case.
We saw the following. ( Note I was using IE 7)

I had to do the following configuration change on IE to get it working. ( Uncheck Show Friendly HTTP Error Messages)

After changing the IE Setting, I was able to get the custom error page.

Reference :-