HowToDoInJava

  • Java 8
  • Regex
  • Concurrency
  • Best Practices
  • Spring Boot
  • JUnit5
  • Interview Questions

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 !!

Feedback, Discussion and Comments

  1. Mrinmoy Majumdar

    November 3, 2018

    Checkout this complete project with Java 11, Jersey and VueJs front end @ https://github.com/mrin9/Modular-Java-Jersey-Vue

    Reply

Ask Questions & Share Feedback Cancel reply

Your email address will not be published. Required fields are marked *

*Want to Post Code Snippets or XML content? Please use [java] ... [/java] tags otherwise code may not appear partially or even fully. e.g.
[java] 
public static void main (String[] args) {
...
}
[/java]

Help me fight spammers. Solve this simple math. *

Search Tutorials

  • Email
  • Facebook
  • RSS
  • Twitter

Jersey Tutorial

  • Jersey – Hello World
  • Jersey2 – Hello World
  • Jersey – quickstart-archetype
  • Jersey – Custom Logging
  • Jersey – Set Cookie
  • Jersey – File Download
  • Jersey – File Upload
  • Jersey – Multi-File Upload
  • Jersey – Exception Handling
  • Jersey – MOXy JSON
  • Jersey – JSONP
  • Jersey – Google Gson
  • Jersey – Security

Jersey Client

  • Jersey Client – Access REST APIs
  • Jersey Client – Authentication
  • Jersey Client – Set Cookie

Popular Tutorials

  • Java 8 Tutorial
  • Core Java Tutorial
  • Java Collections
  • Java Concurrency
  • Spring Boot Tutorial
  • Spring AOP Tutorial
  • Spring MVC Tutorial
  • Spring Security Tutorial
  • Hibernate Tutorial
  • Jersey Tutorial
  • Maven Tutorial
  • Log4j Tutorial
  • Regex Tutorial

Meta Links

  • Advertise
  • Contact Us
  • Privacy policy
  • About Me

Copyright © 2016 · HowToDoInjava.com · All Rights Reserved. | Sitemap