Tag Archives: jersey

Documenting Jersey REST APIs with Swagger

Swagger is a specification for documenting REST APIs. It enables the service provider to publish any changes in the REST API specifications thus making these updates visible to the clients consuming these APIs in real time. This blog describes how to use swagger to document Jersey based REST APIs in  a Spring application. I have […]


Encountering the “Only one JAX-RS Application Class allowed.” in JBoss AS7 server.

If like me you have tried deploying RESTful Web services to JBoss AS7 using Jersey framework you could have encountered the  “Only one JAX-RS Application Class allowed.” error Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011232: Only one JAX-RS Application Class allowed. org.glassfish.jersey.server.ResourceConfig org.glassfish.jersey.server.ResourceConfig$WrappingResourceConfig org.glassfish.jersey.server.ResourceConfig$RuntimeConfig com.restaurant.jersey.JerseyApplication at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.scan(JaxrsScanningProcessor.java:209) at org.jboss.as.jaxrs.deployment.JaxrsScanningProcessor.deploy(JaxrsScanningProcessor.java:105) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final] … 5 more you will need […]


Building JAX-RS REST api using Spring 4, Jersey and Gradle. Part 1: Setting up the project and dependencies in Gradle

In this series of blog post I would be demonstrating developing REST api using Spring 4 and Jersey. With Gradle for build and dependency management.Also, we would be using Spring Java configuration for all the spring bean dependency injection. We would be using the following: Spring 4, configuration using Spring Java configuration(@Configuration) Jersey 2.19 Gradle […]


Building JAX-RS REST api using Spring 4, Jersey and Gradle. Part 2: Setting up Spring and Jersey.

In this part we will focus on configuring Jersey and Spring 4 in the web application, remember we are going to configure Spring in java classes. The previous part is available here. And you could get the code for these two parts from git repo Add the following to deployment descriptor(web.xml). We will take a […]


TODO list exemple – full Java avec GWT Tomcat Jersey

Ce tutoriel est la suite de todoapp js, mais en java cette fois-ci. C’est le dev d’une simple TODO list de type client-serveur (front-end + back-end). Le but est d’utiliser une stack technique complète en Java pour comparer avec d’autres technologies.