You're mixing 2 versions of Jersey in your application: Implementation of a ContainerRequestFilter from JAX-RS 2.0 (Jersey 2) and descriptor configuration (web.xml) for Jersey 1 (see prefix com.sun.jersey
). The following article explains how to register providers in Jersey 2:
It seems that you we're using ResourceFilterFactory
in Jersey 1. This concept doesn't exist in Jersey 2 but there is a new concept (directly in JAX-RS 2.0) how to do that: