users@jersey.java.net

[Jersey] Re: Jersey with Jackson for JSON

From: Jakub Podlesak <jakub.podlesak_at_oracle.com>
Date: Fri, 17 Jun 2011 11:36:20 +0200

Hi Sven,

I apologize for the broken link. The file has gone and the only backup
i could find is [1]. Anyway, the application is quite obsolete and uses
an old Jersey version.

For more recent information on JSON processing configuration
in Jersey, i would suggest you see [2], try example [3] out
and get back to this list if you have further questions.

~Jakub


[1]http://blogs.oracle.com/japod/resource/jersey-twitter-client-1.1-SNAPSHOT.zip
[2]http://jersey.java.net/nonav/documentation/latest/json.html
[3]http://download.java.net/maven/2/com/sun/jersey/samples/jacksonjsonprovider/1.7/jacksonjsonprovider-1.7-project.zip

On 06/16/2011 04:33 PM, Sven Strittmatter wrote:
> Hi,
>
> I'm also interested in consuming a JSON REST API with Jersy. I'm quite
> new to Java. Just hacked the Darcs plugin for Jenkins. So I'm not very
> experienced with Java and the whole APIs. Pleas apologise my n00b
> questions.
>
> I tried this example
> http://blogs.oracle.com/enterprisetechtips/entry/consuming_restful_web_services_with
>
> But when I do:
> ClientConfig config = new DefaultClientConfig();
> config.getClasses().add(JSONRootElementProvider.class);
> Client client = Client.create(config);
>
> I got exceptions that com.sun.jersey...JSONRootElementProvider can't
> be instantiated and will be ignored. When I add String.class then
> everything works.
>
> Also the Link to the source ZIP is broken. Could someone point me to
> some working example code or paste correct URI to the ZIP?
>
> My source is here http://github.com/Weltraumschaf/maconha in the
> directory /client.
>
> 2. Question: Is there an official Jersey IRC channel somewhere?
>
> Regards Sven
>