You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@shiro.apache.org by "jonathan.labin" <jo...@gmail.com> on 2016/01/24 21:54:47 UTC

Re: Setting Cache Manager with auto-setting of realms

I'm not sure I was a mailing list subscriber when I first posted so I'm
replying in the hopes that the original question goes out with it.


jonathan.labin wrote
> I am trying to enable a simple cache manager in my ini file with:
> cacheManager = org.apache.shiro.cache.MemoryConstrainedCacheManager
> securityManager.cacheManager = $cacheManager
> 
> But I still obtain an error message in the log:
> 2016-01-22T14:36:58.073+0000|Info: 14:36:58.073 [admin-listener(7)] INFO 
> o.a.shiro.realm.AuthorizingRealm - No cache or cacheManager properties
> have been set.  Authorization cache cannot be obtained.
> 
> This error message goes away if I explicitly set realms on the
> securityManager with:
> securityManager.realms = $myRealm1, $myRealm2, ..., $myRealmN
> 
> However this results in the warning:
> 2016-01-22T14:38:00.117+0000|Info: 14:38:00.117 [admin-listener(5)] INFO 
> o.a.s.c.IniSecurityManagerFactory - Realms have been explicitly set on the
> SecurityManager instance - auto-setting of realms will not occur.
> 
> Is there a way to have both a cache enabled and auto-setting of realms?





--
View this message in context: http://shiro-user.582556.n2.nabble.com/Setting-Cache-Manager-with-auto-setting-of-realms-tp7580906p7580909.html
Sent from the Shiro User mailing list archive at Nabble.com.