Hi Krishan,

Ehcache 1.5 is pretty old.  Shiro is compiled against 2.3.0.  Try that
and see how it works.

As a test, I ran the basic Shiro sample web app here:
http://svn.apache.org/repos/asf/shiro/trunk/samples/web/

I modified the pom to depend on Shiro's shiro-ehcache .jar and then
added the following to the WEB-INF/shiro.ini file at the end of the
[main] section:

sessionManager = org.apache.shiro.web.session.mgt.DefaultWebSessionManager
sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO
sessionManager.sessionDAO = $sessionDAO
securityManager.sessionManager = $sessionManager

cacheManager = org.apache.shiro.cache.ehcache.EhCacheManager
securityManager.cacheManager = $cacheManager

It all started/worked fine.

HTH,

Cheers,

-- 
Les Hazlewood
CTO, Katasoft | http://www.katasoft.com | 888.391.5282
twitter: @lhazlewood | http://twitter.com/lhazlewood
katasoft blog: http://www.katasoft.com/blogs/lhazlewood
personal blog: http://leshazlewood.com

Reply via email to