you didnt mix api versions?
Romain Manni-Bucau @rmannibucau http://www.tomitribe.com http://rmannibucau.wordpress.com https://github.com/rmannibucau 2015-01-15 19:28 GMT+01:00 jieryn <[email protected]>: > Oh, hm, I'm seeing something else strange now: > > java.lang.NoSuchMethodError: > javax.ws.rs.core.Response.getMediaType()Ljavax/ws/rs/core/MediaType; > at > org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.extractResult(ClientInvocation.java:144) > at > org.jboss.resteasy.client.jaxrs.internal.ClientInvocation.invoke(ClientInvocation.java:444) > at > org.jboss.resteasy.client.jaxrs.internal.ClientInvocationBuilder.get(ClientInvocationBuilder.java:165) > at > com.acme.javaee.api.JaxRsClientTest.testWikipediaTomee1(JaxRsClientTest.java:30) > > > On Thu, Jan 15, 2015 at 1:06 PM, Romain Manni-Bucau > <[email protected]> wrote: >> I meant client providers are not auto registered AFAIK >> >> >> Romain Manni-Bucau >> @rmannibucau >> http://www.tomitribe.com >> http://rmannibucau.wordpress.com >> https://github.com/rmannibucau >> >> >> 2015-01-15 18:40 GMT+01:00 jieryn <[email protected]>: >>> Even removing the resteasy-jaxb-provider and resteasy-json-p-provider >>> yields the same result. >>> >>> On Thu, Jan 15, 2015 at 11:57 AM, Romain Manni-Bucau >>> <[email protected]> wrote: >>>> hi >>>> >>>> isnt it just cause different providers are registered? >>>> >>>> >>>> Romain Manni-Bucau >>>> @rmannibucau >>>> http://www.tomitribe.com >>>> http://rmannibucau.wordpress.com >>>> https://github.com/rmannibucau >>>> >>>> >>>> 2015-01-15 17:41 GMT+01:00 jieryn <[email protected]>: >>>>> https://github.com/jieryn/javaee-example >>>>> >>>>> Would someone please give that small example project a try (mvn >>>>> install)? The same tests using JAX-RS 2.0 Client library (via jboss >>>>> resteasy) fail, but work with Apache Wink's native client. I'm also >>>>> seeing other weird errors with not being able to marshal/unmarshal >>>>> XMLRootElements when using JAX-RS 2.0 client library. >>>>> >>>>> Anyone have any experience with this? I'd prefer to use the 2.0 client >>>>> library so that I can change providers if it is desired in the future.
