Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
Holger Staudacher edited this page May 13, 2015 · 9 revisions

I'm receiving a 404 when accessing the my services

  • Check that you have started the com.eclipsesource.jaxrs.publisher bundle.

I'm using the EclipseLink MOXy/Gson @Provider but serialization does not work

  • Check that the responsible provider bundle e.g. com.eclipsesource.jaxrs.provider.moxy is active.

I would like to execute a local build, how?

You have two options:

How can I change the /services root path?

By default the publisher registers the services using the context path /services. This means an OSGi service that is annotated with @Path( "/foo" ) will be available using the path /services/foo. This context path is configurable using the OSGi configuration admin. You can configure the service using the service.pid com.eclipsesource.jaxrs.connector and the property root to define a custom path.

How do I get the status code from failed requests?

The JAX-RS consumer throws a RequestException when the server returns a 4xx or 5xx status. The RequestException has methods to get information about the failed request.

Why do I have to use Java 7?

With Jersey 2.7 the Jersey team decided to compile the library using Java 7, see the changelog. For this reason the connector bundles also need to use Java 7.

How can I change the ServiceTracker filter?

The connector uses an AllServiceTracker which tracks all services and publishes them as resources if possible. If you would like to limit the services tracked you can implement your own ResourceFilter and register it as a service. Please note that it must be available in the container before the publisher starts.