Tag Archives: JAX-RS

Using Jackson json parser in Apache Tomee 1.5 rest


Code in WEB-INF/openejb-jar.xml for every rest bean, in this case MobileRest: Add services in WEB-INF/resources.xml:

https://fmdojo.wordpress.com/2015/08/13/using-jackson-json-parser-in-apache-tomee-1-5-rest/

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 […]

https://thejavanode.wordpress.com/2015/08/11/encountering-the-only-one-jax-rs-application-class-allowed-in-jboss-as7-server/

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 […]

https://thejavanode.wordpress.com/2015/08/17/building-jax-rs-rest-api-using-spring-4-jersey-and-gradle-part-1-setting-up-the-project-and-dependencies-in-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 […]

https://thejavanode.wordpress.com/2015/08/23/building-jax-rs-rest-api-using-spring-4-jersey-and-gradle-part-2-setting-up-spring-and-jersey/

Fabric8 Kubernetes and Openshift Java DSL


via Ioannis Canellos Blog: Fabric8 Kubernetes and Openshift Java DSL.

The first releases of the Fabric8 v2 have been using a JAX-RS based Kubernetes client that was using Apache CXF. The client was great, but we always wanted to provide something thinner, with less dependencies (so that its easier to adopt). We also wanted to give it a fecelift and build a DSL around it so that it becomes easier to use and read.

The new client currently lives at: https://github.com/fabric8io/kubernetes-client and it provides the following modules:

  1. Kubernetes client.
  2. An Openshift client.
  3. Mocking framework for all the above (based on EasyMock)

A JavaFX 8 Stock Ticker application


Since Java SE 7, update 6 , JavaFX is part of the Java SE, it is officially replacing Swing as Oracle’s UI library for Java, and it runs on (any) desktop, mobile, and within the browser (applet). Java SE 7 includes version JavaFX 2.2, Java SE 8 includes JavaFX8, i.e. the version we will use here. In this […]

http://blog.iadvise.eu/2015/03/09/a-javafx-8-stock-ticker-application/

JEE : Using EJB and Context annotations in a JAX-RS Provider class


A lot of new annotations have been introduced since the JEE6 spec. Before we had EJBs and servlets to cover most of our server-side objects in a JEE application. But in JEE6, CDI and JAX-RS have been added, along with a few other JSRs that are implemented using annotations. This results in a long list of annotations, where – in my opinion – it is not […]

http://blog.iadvise.eu/2015/06/01/jee-using-ejb-and-context-annotations-in-a-jax-rs-provider-class/