[ww-3772] Strust 2, Thread Locals reported by Tomcat after web application is stopped
Posted on 2014-02-25
I'm using Strust 2, version 18.104.22.168 on Tomcat version 6.0.26.
And there's a error message when web application is closed:
SEVERE: The web application [/myapp] created a ThreadLocal with key of type [com.opensymphony.xwork2.inject.ContainerImpl$10] (value [com.opensymphony.xwork2.inject.ContainerImpl$10@1376afa]) and a value of type [java.lang.Object] (value [[Ljava.lang.Object;@15075f9]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
I searched and found that there's a report that this problem was fixed on Strust 2, version 2.3.3.
The problem is I can not change version of Strust without permission.
And thought, I must test all my web application again to ensure it run normally on new version of Strust.
So, how can I fix this problem without changing the version of Strust.