Spring Data Repository causes Server Tomcat error on shut down - how to prevent?
My tomcat app is issuing this error on shut down. The message refers to my use of Spring Data Repository "findBy". Why are these occurring and how can I get ride of them?
Code:
SEVERE: The web application [] created a ThreadLocal with key of type [org.springframework.core.NamedThreadLocal] (value [Transactional resources]) and a value of type [java.util.HashMap] (value [{public abstract java.util.List com.xxx.xxx.repository.xxx.findByxxx(com.xxx.xxx.domain.xxx)=java.lang.Object@722d5f24, public abstract java.util.List com.xxx.xxx.repository.xxx.findByxxx(java.lang.String)=java.lang.Object@722d5f24, public abstract java.lang.Object org.springframework.data.repository.CrudRepository.findOne(java.io.Serializable)=java.lang.Object@722d5f24}]) 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.
Environment includes:
- Tomcat 7.0.22
- STS 3.0.0
- Roo 1.2