tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edao, Aliye" <aliye.e...@siemens.com>
Subject Tomcat error messages sent to client browsesr
Date Wed, 25 Feb 2009 07:57:32 GMT
Dear all,
 
I am trying to find out if there is an alternative way of telling Tomcat
not to send information to the client browser in a 
case of an error (Stack trace, Root Cause ...) in the application rather
than by defining an error-page in web.xml.
 
 
System information:
 
+++
Linux 2.6.5-7.283-bigsmp
Tomcat 6.0.18
Apache 2.0.63
Java jdk1.6.0 (jre)
+++
 
Error message displayed in client browser:
 
HTTP Status 500 - 
------------------------------------------------------------------------
--------
type Exception report
 
message 
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception 

Stacktrace:
 
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServle
tWrapper.java:505)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:416)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
de.netbank.tools.persistence.HibernateFilter.doFilter(HibernateFilter.ja
va:43)
 
de.netbank.tools.tracking.TrackingFilter.doFilter(TrackingFilter.java:16
1)
 de.netbank.tools.CharsetFilter.doFilter(CharsetFilter.java:47)
 de.netbank.tools.XSSFilter.doFilter(XSSFilter.java:47)
 
root cause 
 
java.lang.ArrayIndexOutOfBoundsException: 1
 
de.netbank.tools.fonds.FondsShopBean.parseWarenkorb(FondsShopBean.java:4
67)
 
org.apache.jsp.fondsshop_005fanlagebetrag_jsp._jspService(fondsshop_005f
anlagebetrag_jsp.java:533)
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:374)
 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
de.netbank.tools.persistence.HibernateFilter.doFilter(HibernateFilter.ja
va:43)
 
de.netbank.tools.tracking.TrackingFilter.doFilter(TrackingFilter.java:16
1)
 de.netbank.tools.CharsetFilter.doFilter(CharsetFilter.java:47)
 de.netbank.tools.XSSFilter.doFilter(XSSFilter.java:47)
 
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.
------------------------------------------------------------------------
--------
 
Apache Tomcat/6.0.18
 
+++
 
Solution I already implemented in web.xml:
 
<error-page>
    <exception-type>java.lang.Exception</exception-type>
    <location>/page_not_foung.jsp</location>
</error-page>
 
<error-page>
    <error-code>500</error-code>
    <location>/page_not_foung.jsp</location>
</error-page>
++++
 
The above solution works fine. But what I am trying to find out is - if
there is a way to tell Tomcat not to send 
error messages and Version Information to the client browser with out
using the above mentioned error-page.
 
Is this possible? If yes - I will be very thankful for any hint!
 
 
With best regards,
 
Aliye
 

 
 

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