Use LogFactory.release(Thread.currentThread().getContextClassLoader()) in your ServletContextListener's contextDestroyed() method to release the resources it takes.
Description
Suggested in a comment on my blog:
http://raibledesigns.com/rd/entry/why_i_like_tomcat_5#comment9
Use LogFactory.release(Thread.currentThread().getContextClassLoader()) in your ServletContextListener's contextDestroyed() method to release the resources it takes.
Reopened to mark "won't fix" because of the following warnings issued by SLF4J when it's in the classpath (caused by displaytag upgrade).
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html for an explanation.
Matt Raible - 14/Sep/07 04:22 PM Reopened to mark "won't fix" because of the following warnings issued by SLF4J when it's in the classpath (caused by displaytag upgrade).
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html for an explanation.
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html for an explanation.