I\'m trying to run a jersey client and facing this issue.
WS Class:
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
im
For followers, these (with mockito in this instance, but kind of generic):
java.lang.NoClassDefFoundError: com/sun/jersey/spi/inject/Errors$Closure
java.lang.NoClassDefFoundError: com/sun/jersey/core/header/LinkHeaders
meant "you have a dependency on jersey-core 1.0.2 and also dependency on jersey-client 1.11" (need to match core with client versions more closely). Unfortunately "server" and "client" both use the "core" so in the end they practically all have to precisely match up :|