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.
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
>