I am trying to follow this post\'s upvoted answer: Best practice for REST token-based authentication with JAX-RS and Jersey
I\'m using the CDI approach and in my fil
After struggling with the same exact issue I found a solution to that. I switched from TomCat to Glassfish and updated maven dependencies to match the ones from official Jersey 2 documentation. After that it worked like magic.