I'm getting the following warnings when shutting down my Shiro-enabled application:
SEVERE: The web application [] appears to have started a thread named [net.sf.ehcache.CacheManager@7cf639df] but has failed to stop it. This is very likely to create a memory leak. Feb 12, 2014 3:21:23 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [] appears to have started a thread named [realmsCache.data] but has failed to stop it. This is very likely to create a memory leak. Feb 12, 2014 3:21:23 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [] appears to have started a thread named [shiro-activeSessionCache.data] but has failed to stop it. This is very likely to create a memory leak. I'm wondering if there is a clean way for me to end these threads. Curiously, I'm seeing the following in the shutdown logs that suggest Shiro is attempting to shutdown normally: 15:21:23,099 DEBUG LifecycleBeanPostProcessor:118 - Destroying bean [securityManager]... 15:21:23,099 INFO AbstractValidatingSessionManager:246 - Disabled session validation scheduler. 15:21:23,099 DEBUG LifecycleBeanPostProcessor:118 - Destroying bean [shiroSessionManager]... 15:21:23,100 DEBUG LifecycleBeanPostProcessor:118 - Destroying bean [shiroCacheManager]... 15:21:23,100 DEBUG DisposableBeanAdapter:226 - Invoking destroy() on bean with name 'sessionFactory' I was about to attempt to invoke destroy() on the cache manager in my context loader listener's contextDestroyed() method, but I suspect that won't help me. Has anyone else encountered this? Mike The information transmitted, including attachments, is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this e-mail in error, please notify the sender immediately by replying to the message and deleting the material from your computer.
