The question i\'m about to ask is a bit tricky and I haven\'t found any answer yet. Maybe because i\'m looking for the wrong thing. But i hope you will help me on this.
what about your web.xml?
Have you already put this filters inside web.xml?
com.sun.jersey.spi.container.ContainerRequestFilters com.yourcompany.filter.SecurityFilter com.sun.jersey.spi.container.ResourceFilters com.sun.jersey.api.container.filter.RolesAllowedResourceFilterFactory