[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Stopping some exceptions from hitting the logs

lhoriman do-not-reply at jboss.com
Thu Nov 9 04:03:01 EST 2006


Is there any way to stop specific exception messages that are thrown during page execution from hitting the logs?

My JSPs commonly throw a SecurityException when the user visits a deep link and is not yet logged in.  This is handled nicely by a custom error page that recognizes the specific error.  However, it still results in an exception in the logs.  Unfortunately this case is common enough that it floods my logs with garbage and makes the real problems hard to find.

Is there a way to say that some (or even all) exceptions thrown while executing JSPs should not log stacktraces?  Disabling all log output from org.apache.catalina.core.ContainerBase seems far too heavy-handed.

Thanks,
Jeff

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984439#3984439

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984439



More information about the jboss-user mailing list