I\'m trying to use a ContainerRequestFilter to enforce some authentication on a Tomcat based Jersey application. I followed this document. Problem : the filter
ContainerRequestFilter
I also had to add the @Provider JAX-RS annotation to my filters. This makes the filter discoverable during JAX-RS scanning phase.
@Provider public class MyAppFilter implements ContainerRequestFilter { // filter logic }