Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 71060 invoked from network); 23 Sep 2005 09:51:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 23 Sep 2005 09:51:31 -0000 Received: (qmail 94639 invoked by uid 500); 23 Sep 2005 09:51:17 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 94398 invoked by uid 500); 23 Sep 2005 09:51:16 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 94383 invoked by uid 99); 23 Sep 2005 09:51:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2005 02:51:16 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.28.130.98] (HELO thmailsite6.services.byworkwise.com) (217.28.130.98) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Sep 2005 02:51:24 -0700 Received: from BOB (unverified [81.139.126.28]) by freenet.co.uk (Rockliffe SMTPRA 5.3.11) with ESMTP id for ; Fri, 23 Sep 2005 10:50:51 +0100 Message-ID: <004501c5c024$473c0a80$0500a8c0@BOB> Reply-To: "James Cowan" From: "James Cowan" To: "Tomcat Users List" References: <013201c5bf89$c6dbde50$0500a8c0@BOB> <4332DCC4.1020507@jillesvangurp.com> Subject: Re: tomcat exception handling Date: Fri, 23 Sep 2005 10:50:13 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N thanks for the reply. I tried that but it does not seem to make any difference. what version of tomcat are you using? James ----- Original Message ----- From: "Jilles van Gurp" To: "Tomcat Users List" Sent: Thursday, September 22, 2005 5:33 PM Subject: Re: tomcat exception handling > swallowoutput=true in your context should help > > Jilles > > James Cowan wrote: > > Hi > > > > How do I suppress the stack trace from exception handling globally (i.e. not > > using an errorPage directive)? > > > > I have tried setting the Verbosity of the Logger elements in the server.xml > > (for Tomcat 5.0.28) to 0 but this does not seem to stop stack trace. > > > > A simple jsp like this: > > > > <% > > if (true) > > throw new Exception("Some exception"); > > %> > > > > produces this output: > > exception > > > > javax.servlet.ServletException: Some exception > > > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI > > mpl.java:825) > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp > > l.java:758) > > org.apache.jsp.e_jsp._jspService(e_jsp.java:53) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3 > > 24) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > > I just want the HTTP 500 error displayed and no more information. > > > > James Cowan > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org