I'm trying to use Jersey to create REST services using tomcat as a container. I'm struggling to figure out what the maven artifacts are.
I'd like to use the jersey servlet to serve manage my service.
<dependencies>
...
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-project</artifactId>
<version>1.11</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>maven-repos</id>
<name>Glassfish Repos</name>
<url> http://maven.java.net</url>
</repository>
</repositories>
Just getting invalid checksum errors, etc...
ref: jersey user-guide, Chapter 11. Dependencies
artifactId should be 'jersey-server', not 'jersey-project'.
the following dependency is ok to me.
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
<version>1.11</version>
</dependency>
The following dependencies work for me:
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-server</artifactId>
</dependency>
<dependency>
<groupId>com.sun.jersey</groupId>
<artifactId>jersey-servlet</artifactId>
</dependency>
I am using Tomcat as a servlet container for Jersey.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With