users@jersey.java.net

[Jersey] Re: Twitter4j & Jersey: WebApplicationException

From: Petr Jurák <petr.jurak_at_gmail.com>
Date: Tue, 8 Mar 2011 15:17:50 +0100

Yes,
I think you need this: @Produces(MediaType.APPLICATION_JSON)
regards,
Petr

2011/3/8 mahan_h <mahorad_at_gmail.com>:
> I added that in my web.xml but I get the very same error.
> I read about this feature in Jersey tutorial. do I need to add @Produces or
> sth. like that to make it work?
>
>
> Petr Jurák wrote:
>>
>> Hi,
>> you can try POJO mapping.
>> Add this to your web.xml to Jersey servlet:
>>
>>                       com.sun.jersey.api.json.POJOMappingFeature
>>                       true
>>
>> Hope this helps.
>> Regards,
>> Petr
>>
>
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Twitter4j-Jersey-WebApplicationException-tp6095973p6125374.html
> Sent from the Jersey mailing list archive at Nabble.com.
>