Jersey Customer Dependencies

According to the documentation , all I need for a jersey client is jersey-bundle.jar. But simple code that creates a request and sends it throws an exception.

java.lang.ClassNotFoundException: javax.ws.rs.ext.Providers

After adding jsr311-api-1.0.jarto the classpath. I have another exception.

java.lang.NoClassDefFoundError: javax/ws/rs/core/Response$StatusType

Where can I find a complete list of dependencies for Jersey. Which banks should be included. Btw I can not use the user Maven, Ivy, etc.

thank

+5
source share
3 answers

Try searching mvnrepository.com

Look at the package you are looking for, select the version, and it will show you everything that the artifact depends on.

For knitwear: http://mvnrepository.com/artifact/com.sun.jersey/jersey-bundle/1.13-b01

+3

: " jersey-client 1.19, jsr311-api-1.0" (, jersey- [1.19] / jsr311-api-1.1).

0

It is best to add a package for the MavenLink Jersey client to select jar / pom from the file line instead of adding independent / separate jar files. if you do this by adding a separate jar, you will get another / different error. It’s best to add a package (a group of dependent jars for a Jersy client).

0
source

All Articles