In my case, org.glassfish.jersey.core:jersey-server:2.35 is missing in class path although client and core dependencies are present.
Removed all com.sun.jersey dependencies, javax.ws.rs:jsr311-api:jar:1.1.1 and added all glassfish jersey dependencies fixed the issue