users@jersey.java.net

[Jersey] Re: Twitter4j & Jersey: WebApplicationException

From: Petr Jurák <petr.jurak_at_gmail.com>
Date: Mon, 7 Mar 2011 13:58:12 +0100

Hi,
you can try POJO mapping.
Add this to your web.xml to Jersey servlet:
                <init-param>
                        <param-name>com.sun.jersey.api.json.POJOMappingFeature</param-name>
                        <param-value>true</param-value>
                </init-param>
Hope this helps.
Regards,
Petr

2011/3/7 mahan_h <mahorad_at_gmail.com>:
> you need to serialize Tweet yourself, and have your resource method return it
> as a String
> How should I serialize it exactly, could you please give me more hints on
> this one
>
> provide a means for Jersey to serialize it using a MessageBodyWriter.
> I'm completely newbie in jersey, is there a link, tutorial or documentation
> to address this exact problem clearly.
>
> Regards
>
> --
> View this message in context: http://jersey.576304.n2.nabble.com/Twitter4j-Jersey-WebApplicationException-tp6095973p6096030.html
> Sent from the Jersey mailing list archive at Nabble.com.
>