On Friday, November 04, 2011 12:20:09 PM [email protected] wrote:
> Hi,
> 
> I'm using cxf 2.4.3, tomcat 6.0.33 and java6. My webapp uses a simple
> webservice client created with cxf. When my webapp stops the following line
> is logged to catalina.out: Nov 4, 2011 10:18:07 AM
> org.apache.catalina.loader.WebappClassLoader clearThreadLocalMap SEVERE:
> The web application [/my.app] created a ThreadLocal with key of type
> [org.apache.ws.commons.schema.utils.CollectionFactory$1] (value
> [org.apache.ws.commons.schema.utils.CollectionFactory$1@5d315d31]) and a
> value of type [java.lang.Boolean] (value [false]) but failed to remove it
> when the web application was stopped. This is very likely to create a
> memory leak.


This would be  a bug in XmlSchema.   Can you log an issue:

https://issues.apache.org/jira/browse/XMLSCHEMA

> Where is it coming from, should I worry about it ? If yes how do I get this
> fixed ?

It definitely should be fixed, but it's not a big issue.   It's a 
ThreadLocal<Boolean> and thus, at worst, it holds onto a Boolean per thread 
until the thread goes away.   A boolean isn't very big so it's not really 
holding any memory.   Boolean is also part of the system classloader and thus 
it wouldn't be holding onto a classloader either.   Thus, not a major issue.   
But it still should be fixed.


Dan



> 
> best regards,
> Kate
> 
> 
> ----------------------------------------------------------------------
> Lubisz zakupy? Kosmetyki? Perfumy?
> Zostan ambasadorka Styl.pl >> http://linkint.pl/f2a69
-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to