Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
2.22.00
-
None
-
None
Description
When the site war is redeployed, Cargo logs the following error:
SEVERE: The web application [/site] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@524b9e7c]) and a value of type [org.hippoecm.hst.core.jcr.pool.BasicPoolingRepository] (value [org.hippoecm.hst.core.jcr.pool.BasicPoolingRepository@62920919]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
Steps to reproduce:
1. create a new site with the archetype:
$ mvn archetype:generate \
-DarchetypeRepository=http://maven.onehippo.com/maven2 \
-DarchetypeGroupId=org.onehippo.cms7 \
-DarchetypeArtifactId=hippo-archetype-website \
-DarchetypeVersion=1.03.00
2. compile the project and start Cargo:
$ mvn clean install
$ mvn -P cargo.run
3. in a second shell, recompile and redeploy the site
$ cd site
$ mvn package cargo:redeploy
Cargo will then log the error in the first shell.