I just started using Google Guice with my Tomcat webapp and noticed that in the catalina.out file all WAR files are unallocated:
May 16, 2011 5:37:24 PM org.apache.catalina.startup.HostConfig checkResources INFO: Undeploying context [/app]
May 16, 2011 5:37:24 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: A web application appears to have started a thread named [com.google.inject.internal.util. $ Finalizer] but has failed to stop it. This is very likely to create a memory leak.
May 16, 2011 5:37:24 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SEVERE: A web application created a ThreadLocal with key of type [null] (value [com.google.inject.internal.InjectorImpl$1@10ace8d ]) and a value of type [java.lang.Object []] (value [[Ljava.lang.Object; @ 7e9bed]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.
Does anyone know what causes this, or how can I stop it?
I just followed the instructions from here http://code.google.com/docreader/#p=google-guice&s=google-guice&t=ServletModule
... and havenโt come up with anything yet. I have only 2 servlets and a filter.
Thank!
java tomcat guice guice-servlet
Peter Sankauskas May 17 '11 at 12:46 a.m. 2011-05-17 00:46
source share