title: Memory leak when redeploying application in Tomcat
body: <p>When I redeploy my application in tomcat, I get the following issue:</p>
  
  <pre><code> The web application [] created a ThreadLocal with key of type
   [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@10d16b])
   and a value of type [com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty]
  (value [com.sun.xml.bind.v2.runtime.property.SingleElementLeafProperty@1a183d2]) but 
   failed to remove it when the web application was stopped. 
   This is very likely to create a memory leak.
  </code></pre>
  
  <p>Also, am using ehcache in my application. This also seems to result in the following exception.</p>
  
  <pre><code>     SEVERE: The web application [] created a ThreadLocal with key of type [null] 
       (value [com.sun.xml.bind.v2.ClassFactory$1@24cdc7]) and a value of type [java
       .util.WeakHashMap... 
  </code></pre>
  
  <p>The ehcache seems to create a weak hash map and I get the message that this is very likely to create a memory leak.</p>
  
  <p>I searched over the net and found this,
    <a href="http://jira.pentaho.com/browse/PRD-3616" rel="noreferrer">http://jira.pentaho.com/browse/PRD-3616</a> but I dont have access to the server as such.</p>
  
  <p>Please let me know if these warnings have any functional impact or can they be ignored? I used the "Find Memory leaks" option in tomcat manager and it says "No memory leaks found"     </p>