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 had the same problem for JAX-RS 2 , jersey and the below annotation fixed it
@PreMatching