users@jersey.java.net

Re: [Jersey] Using the Security Annotations

From: Moises Lejter <moilejter_at_gmail.com>
Date: Thu, 25 Mar 2010 12:49:10 -0500

Hmm - I don't remember having to set up such a filter, when I played around with @RolesAllowed on a JAX-RS resource deployed onto GlassFish...

Is this filter only needed on non-JavaEE6 containers? (And if so, would you mind sharing how it figures things out automatically on GF, but not on Tomcat? I'm just curious :-) )

Moises

On Mar 25, 2010, at 4:42 AM, Paul Sandoz wrote:

> To enable the use of @RolesAllowed on say tomcat you need to declare the following request filter:
>
> https://jersey.dev.java.net/nonav/apidocs/latest/jersey/com/sun/jersey/api/container/filter/RolesAllowedResourceFilterFactory.html
>
> in your web.xml.