Hello!

I'm somehow stuck in configuring Shiro for our JEE application, using
session clustering and our own implementation of
org.apache.shiro.cache.Cache. 
(our cache implementation makes use of WebSphere's
com.ibm.websphere.cache.DistributedMap class to achieve a distributed
cache.)

Here is the main section from our shiro.ini:

[main]
jdbcRealm = com.dummy.common.security.OurJdbcRealm

activeSessionsCache = com.dummy.common.security.OurShiroCache
sessionDAO = org.apache.shiro.session.mgt.eis.EnterpriseCacheSessionDAO 
sessionDAO.activeSessionsCache = $activeSessionsCache

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


Unfortunately I'm getting the following error while calling the application:

org.apache.shiro.session.UnknownSessionException: There is no session with
id [1643fee1-cbb2-4806-9d4d-390405d43a7f]

This error happens in the init state of our application, where some
attibutes are tried to set to the current session. I can see in the debugger
that the session is stored correctly in the cache and also some attributes.
Then later, when trying again to store some attributes the session is not
available anymore in the cache. Currently I can't figure out why. I think I
have an obvious error in my shiro.ini and I hope you guys can help me out
this mess...




--
View this message in context: 
http://shiro-user.582556.n2.nabble.com/Configuration-issue-using-distributed-cache-tp7578410.html
Sent from the Shiro User mailing list archive at Nabble.com.

Reply via email to