Jersey (JAX-RS) Tutorials

Jersey RESTful Web Services framework is open source, production quality, framework for developing RESTful Web Services in Java that provides support for JAX-RS APIs and serves as a JAX-RS (JSR 311 & JSR 339) Reference Implementation. Jersey framework is more than the JAX-RS Reference Implementation. Jersey provides it’s own API that extend the JAX-RS toolkit with additional features and utilities to further simplify RESTful service and client development.

This page will list down links to all Jersey RESTful web-services tutorials available in this blog for quick access. I will try to categorize these tutorials to further simplify the look up process.

Jersey Hello World Examples

Some quick start examples to use JAX-RS Jersey implementation.

Jersey 1.x hello world application
Jersey 2.x hello world application
Jersey-quickstart-archetype Hello World Application

Jersey Basic Examples

Basic annotations and functions to develop REST based CRUD APIs.
Custom Exceptions Handling with ExceptionMapper
Case-insensitive URLs in Jersey
Set cookie in REST response entity

Jersey Advanced Examples

Advanced examples related to file upload or download, integration with other frameworks and exception handling.

Jersey file upload example
Jersey + Ajax Multi-File Upload Example
Jersey file download example
Jersey + MOXy JSON Example
Jersey + JSONP Example
Jersey + Google Gson Example
Jersey REST API Security Example
Jersey custom logging request and response entities

Jersey Client

Jersey RESTful Client GET/PUT/POST/DELETE Examples
Jersey RESTful Client API Authentication Example
Set Cookie Example

Possible exceptions you may face

You may face these exception in some scenarios. Learn to overcome them.

[Solved] java.lang.ClassNotFoundException: org.glassfish.jersey.servlet.ServletContainer
SOLVED: java.lang.ClassNotFoundException: com.sun.jersey.spi.container.servlet.ServletContainer

Happy Learning !!

Comments are closed for this article!


Most Voted
Newest Oldest
Inline Feedbacks
View all comments

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.