Thanks Les.
In short, I've got it working now.
I had recently upgraded to Shiro 1.2 but I hadn't changed my web.xml file to
use the new initialization procedure. So I still had this in my web.xml:
<filter>
<filter-name>ShiroFilter</filter-name>
<filter-class>org.apache.shiro.web.servlet.IniShiroFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ShiroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
I've now changed it to be this:
<listener>
<listener-class>org.apache.shiro.web.env.EnvironmentLoaderListener</listener-class>
</listener>
<filter>
<filter-name>ShiroFilter</filter-name>
<filter-class>org.apache.shiro.web.servlet.ShiroFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ShiroFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
And now Shiro shuts down cleanly.
Notice I did not have to set the EhCache system property as you suggested in
your reply.
So my shiro.ini looks like this (simplified for this post):
[main]
authc = com.myapp.auth.shiro.ShiroFormAuthenticationFilter
authcRealm = com.myapp.auth.shiro.ShiroAuthorizingRealm
matcher = org.apache.shiro.authc.credential.HashedCredentialsMatcher
matcher.hashAlgorithmName = SHA-256
matcher.hashIterations = 1
authcRealm.credentialsMatcher = $matcher
cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager
securityManager.realms = $authcRealm
securityManager.cacheManager = $cacheManager
And again, I'm not doing any special configuration for EhCache, so it's just
using the ehcache.xml file that's included with Shiro.
Does all of that (specifically the shiro.ini file) look correct?
Thanks,
-Mike
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/Unclean-shutdown-of-Tomcat-related-to-EhCacheManager-tp6267587p7243842.html
Sent from the Shiro User mailing list archive at Nabble.com.