users@jersey.java.net

[Jersey] Re: Jersey with Jackson for JSON

From: Sven Strittmatter <weltraumschaf_at_googlemail.com>
Date: Thu, 16 Jun 2011 16:33:26 +0200

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