Re: tomcat exception handling

2005-09-26 Thread James Cowan

thanks. that is what I am looking for.

James

- Original Message - 
From: "Alon Belman" <[EMAIL PROTECTED]>
To: "Tomcat Users List" ; "James Cowan"
<[EMAIL PROTECTED]>
Sent: Friday, September 23, 2005 10:41 PM
Subject: Re: tomcat exception handling


you want to define an error page in your web.xml. try adding something like
the following:


500
/yourErrorPage.html


On 9/23/05, James Cowan <[EMAIL PROTECTED]> wrote:
>
>
> 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" <[EMAIL PROTECTED]>
> 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: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: tomcat exception handling

2005-09-23 Thread James Cowan

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" <[EMAIL PROTECTED]>
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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat exception handling

2005-09-22 Thread James Cowan
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SSL_SESSION_ID

2002-01-18 Thread James Cowan

I have been trying to install the tomcat to work with Apache SSL. The 
manual talks about forwarding the SSL_SESSION_ID to tomcat. How does one 
extract this variable from a jsp - via the servlet's getHeaderNames() 
method?

James Cowan


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>