[ww-3772] Strust 2, Thread Locals reported by Tomcat after web application is stopped

FSOFT-SA used Ask the Experts™
Dear Experts,

I'm using Strust 2, version 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.
Please help.

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Try the following out..

1. Get the version which has the fix to the problem is solved.
2. extract /struts/struts2/trunk/xwork-core/src/main/java/com/opensymphony/xwork2/inject/ContainerImpl.java file from src
3. Create a similar package structure (com/opensymphony/xwork2/inject) in your application and place this ContainerImpl.java file inside
4. Rebuild your code and check this out.

Hope this helps.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial