Hi Andy,

It goes in the main section, definitely.  Is there any more to the
exception?  I'd like to see the entire stack trace if possible.

- Les

On Mon, Aug 17, 2009 at 3:41 PM, Andy Tripp<[email protected]> wrote:
> I created my own Cache and CacheManager:
>
> public class VonageDistributedSessionCache implements Cache {
>    public VonageDistributedSessionCache(String name) {
>        System.err.println("VonageDistributedSessionCache
> constructor.");
>    }
>    ...
> }
>
> public class VonageDistributedSessionCacheManager implements
> CacheManager {
>    public Cache getCache(String name) throws CacheException {
>        return new VonageDistributedSessionCache(name);
>    }
> }
>
> Then in [main] section of my ShiroFilter in web.xml, I have:
>   [main]
>   realmA = com.vonage.auth.client.VonageAuthenticationRealm
>
>   securityManager.sessionMode = native
>
> And when I add this:
>  # pull in vonage centralized authentication:
>  cacheManager =
> com.vonage.auth.client.VonageDistributedSessionCacheManager
>  sessionDAO = org.apache.shiro.session.mgt.eis.MemorySessionDAO
>  sessionDAO.cacheManager = $cacheManager
>  securityManager.sessionDAO = $sessionDAO
>  securityManager.cacheManager = $cacheManager
>
> ...I get this error:
> javax.servlet.ServletException: Unable to load from text configuration.
>
> So...does this injection go here in the [main] section of ShiroFilter,
> or somewhere else?
>
> Thanks,
> Andy
>

Reply via email to