You have a mix of Jersey 1.x components and Jersey 2.x components. You can't mix the two.
You've declared a dependency on:
- com.sun.jersey:jersey-server:jar:1.9
But you've also declared a dependency on:
- org.glassfish.jersey.media:jersey-media-moxy:jar:2.8
Which is pulling in:
- org.glassfish.jersey.core:jersey-common:jar:2.8 and...
- javax.ws.rs:javax.ws.rs-api:jar:2.0)
If you want to use jersey-media-moxy you need to upgrade to Jersey 2.x.