You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by George Christman <gc...@cardaddy.com> on 2012/07/16 19:36:53 UTC

Tapestry Security - AuthorizingRealm No Cache

Hello, I'm using tapestry-security and I'm seeing "realm.AuthorizingRealm No
cache or cacheManager properties have been set.  Authorization cache cannot
be obtained" appear numerous times in my console. I was wondering if anybody
has any experience with dealing with this error or how to resolve it?

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-AuthorizingRealm-No-Cache-tp5714488.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry Security - AuthorizingRealm No Cache

Posted by George Christman <gc...@cardaddy.com>.
Thanks Kalle

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-Security-AuthorizingRealm-No-Cache-tp5714488p5714490.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Tapestry Security - AuthorizingRealm No Cache

Posted by Kalle Korhonen <ka...@gmail.com>.
On Mon, Jul 16, 2012 at 10:36 AM, George Christman
<gc...@cardaddy.com> wrote:
> Hello, I'm using tapestry-security and I'm seeing "realm.AuthorizingRealm No
> cache or cacheManager properties have been set.  Authorization cache cannot
> be obtained" appear numerous times in my console. I was wondering if anybody
> has any experience with dealing with this error or how to resolve it?

You have several options. For a small installation, use something like
the following:
public class UserRealm extends AuthorizingRealm {
	public UserRealm() {
		super(new MemoryConstrainedCacheManager());

For an enterprise installation, consider using an EhCache. Shiro has
pretty reasonable documentation on caching strategies, see
http://shiro.apache.org/caching.html and
http://shiro.apache.org/static/current/apidocs/org/apache/shiro/realm/AuthorizingRealm.html

Kalle

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org