关于tomcat6 reload 时 报:A web application created a ThreadLoca……的错误信息。
A web application created a ThreadLocal with key of type [ org . springframework . core . NamedThreadLocal ]
( value [ Transactional resources ]) and a value of type [ null ] ( value [ null ]) but failed to remove it when the web
application was stopped . To prevent a memory leak , the ThreadLocal has been forcibly removed .
springsource给出的解释
The new Tomcat 6 adds a series of listeners to prevent against memory leaks and one of them, is against ThreadLocals. Unfortunately, there’s no public API to deliberately remove ThreadLocals which rely on garbage collection. This is not something that affects only Spring but _all_ applications that create a ThreadLocal.
I’ve raised this with some of the Tomcat committeers who are looking into this.
Anyway, the messages are harmless and the runtime should not be affected by it.
也是就是说,该错误信息不影响server的运行!!!!