tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Hartung" <>
Subject Re: Logging exceptions per webapp in Tomcat 5.5
Date Fri, 07 Jan 2005 01:32:33 GMT
> From: "Shed Hollaway" <>
> Sent: Thursday, January 06, 2005 6:59 PM

> Svein
> Did you ever get an answer to you question? If so, how separate the
> for webapps?

The exceptions will log out to your log file if you actually bother to
capture the exceptions and log them. The exceptions bubbling to the top in
catalina.out are those that get out of your code.

Don't let them out and capture them yourself. You can try (I haven't done
this) to put a catch-all Filter at the top of your app that does nothing but

public void doFilter(ServletRequest req, ServletResponse resp, FilterChain
    try {
        filterChain.doFilter(request, response);
    catch(Throwable t) {

(making this work is left as an excercise for the reader)


Will Hartung

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message