I\'m trying to use a ContainerRequestFilter to enforce some authentication on a Tomcat based Jersey application. I followed this document.
Problem : the filter
Okay, I didn't get that the jersey.config.server.provider.packages init param needs to reference not only service classes (API endpoints) but ALL the classes including filters.
Now it works :
jersey.config.server.provider.packages
com.hck.debate.rest.controller;com.hck.debate.rest.security
com.sun.jersey.spi.container.ContainerRequestFilters
com.hck.debate.rest.security.AuthFilter