You’re using both
Jersey 1 & 2 (Jersey 1 is an explicit dependency, Jersey 2 is a transitive dependency of
jersey-test-framework-provider-jdk-http) and that’s not possible – so the
classloader is picking up the wrong
Jersey dependencies in
com.sun.jersey are all
Jersey version 1.
Jersey version 2 uses the group
You have both in your
Maven dependencies which is causing this problem.
If possible only use