tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Claver <>
Subject Re: error-page for http 500 error code does not work
Date Fri, 03 Jun 2011 13:43:17 GMT
Thanks for the quick reply!

I zipped the tomcat install and deployed it to my Win 7 machine where it works without issue.

When the custom error servlet fails to display, I get the stock tomcat http 500 error page.

If I look at the access log, I see the 500 error: - - [02/Jun/2011:13:53:14 -0600] "POST /HMAApp/faces/main/TaskSearchTab.jsp
HTTP/1.0" 500 1000

I also see the com.sun.rave.web.ui.appbase.ApplicationException and java.lang.NullPointerException
in the localhost log file (both of which are set to display the custom error page in the application
specific web.xml):

Jun 2, 2011 1:53:14 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet Faces Servlet threw exception
        at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(
        at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(
        at com.sun.faces.lifecycle.RenderResponsePhase.execute(
        at com.sun.faces.lifecycle.LifecycleImpl.phase(
        at com.sun.faces.lifecycle.LifecycleImpl.render(
        at javax.faces.webapp.FacesServlet.service(
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
        at com.sun.rave.web.ui.util.UploadFilter.doFilter(
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(
        at org.apache.catalina.core.StandardWrapperValve.invoke(
        at org.apache.catalina.core.StandardContextValve.invoke(
        at org.apache.catalina.core.StandardHostValve.invoke(
        at org.apache.catalina.valves.ErrorReportValve.invoke(
        at org.apache.catalina.valves.AccessLogValve.invoke(
        at org.apache.catalina.core.StandardEngineValve.invoke(
        at org.apache.catalina.connector.CoyoteAdapter.service(
        at org.apache.coyote.http11.Http11Processor.process(
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
        at org.apache.tomcat.util.threads.ThreadPool$
Caused by: java.lang.NullPointerException
        at hmaapp.utilmanagement.OPProcMain.prerender(
        at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.prerender(
        at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(
        ... 22 more


On 02/06/2011 21:45, Kevin Claver wrote:
> Two things I would like to note:
> 1.  When I invoke the Java HMAExceptionHandlerServlet configured to be =
used in the error-page block in the application specific web.xml directly=
 from the URL in the browser, it works.
> 2.  Tomcat 5.5.33 does correctly redirect to the error-page when runnin=
g on a Windows 7 machine.  The only time I have an issue is on the Linux =
configuration above.

The first things I'd check is whether there's something different about
your Tomcat installation on Linux.

You can ZIP the whole Tomcat install (including the app(s), if they're
in tomcat/webapps) and transfer the file & unzip on your Linux install.
 Start it up & see if the same thing happens.

Also: what error do you see, when the custom error servlet/page fails to
display?  Is it the same error as you expect or a different one?

- if an NPE occurs in your app, do you see a 500 + NPE stacktrace?
- or if a 500 occurs, do you see a 404?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message