javax.ws.rs.ext.Provider

Romain Manni-Bucau
@rmannibucau |  Blog | Github | LinkedIn | Tomitriber


2016-03-30 13:14 GMT+02:00 Elgar <[email protected]>:
> Hello!
> Thank you for the answer.
> I am still lost.
> I took the file. what is import for @provider?
>
>
>
> On 30.03.2016 13:53, Romain Manni-Bucau wrote:
>>
>> Small pointer: moxy has already a context provider
>>
>> http://grepcode.com/file/repo1.maven.org/maven2/org.glassfish.jersey.media/jersey-media-moxy/2.17/org/glassfish/jersey/moxy/xml/MoxyContextResolver.java#MoxyContextResolver
>> . So copying/simplyfing - you just need to call the context factory in
>> your case - and registring it as a @provider it should make the
>> integration easy.
>>
>> Romain Manni-Bucau
>> @rmannibucau |  Blog | Github | LinkedIn | Tomitriber
>>
>>
>> 2016-03-30 12:24 GMT+02:00 Elgar <[email protected]>:
>>>
>>> This produces no output.
>>>
>>> WARNING: No message body writer has been found for response class
>>> Response.
>>>
>>> On 30.03.2016 12:50, ravi wrote:
>>>>
>>>> Try @Produces("text/plain") instead of @Produces("text/xml")
>>>>
>>>>
>>>>
>>>> --
>>>> View this message in context:
>>>>
>>>> http://tomee-openejb.979440.n4.nabble.com/Installing-under-Ubuntu-Debian-tp4677952p4678008.html
>>>> Sent from the TomEE Users mailing list archive at Nabble.com.
>>>>
>

Reply via email to