I\'m trying to use RESTEasy as JAX-RS 2.0 client implementation. The problem is that I got runtime exception:
06-28 13:29:06.410: E/AndroidRuntime(5745): Cau
Well, JAX-RS relies on the Service Provider convention.
On the first lines of the newBuilder method you can read:
Object delegate = FactoryFinder.find(JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY,
JAXRS_DEFAULT_CLIENT_BUILDER);
Where JAXRS_DEFAULT_CLIENT_BUILDER_PROPERTY is "javax.ws.rs.client.ClientBuilder"
In turn, FactoryFinder looks
META-INF/services/javax.ws.rs.client.ClientBuilderjavax.ws.rs.client.ClientBuilder into ${java.home}/lib/jaxrs.propertiesjavax.ws.rs.client.ClientBuilder.So, to use RESTEasy, you should create a file
META-INF/services/javax.ws.rs.client.ClientBuilder
with the text:
org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder
which is the class name of the RESTEasy ClientBuilder