tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: JAX-RS Testing with JAX-RS 2.0 Client
Date Thu, 15 Jan 2015 19:18:42 GMT
is it TomEE 1?


Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2015-01-15 20:16 GMT+01:00 jieryn <jieryn@gmail.com>:
> Looks like org.apache.openejb:javaee-api is going to always be
> included since I am using TomEE for the container. And that one is in
> conflict with the JAX-RS 2.0 Client library, argh.
>
> On Thu, Jan 15, 2015 at 2:02 PM, Romain Manni-Bucau
> <rmannibucau@gmail.com> wrote:
>> 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 <jieryn@gmail.com>:
>>> 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
>>> <rmannibucau@gmail.com> 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 <jieryn@gmail.com>:
>>>>> 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
>>>>> <rmannibucau@gmail.com> 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 <jieryn@gmail.com>:
>>>>>>> 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.

Mime
View raw message