users@jersey.java.net

Re: [Jersey] Abdera Feeds not usable in Eclipse / OSGi?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 20 Aug 2009 10:35:32 +0200

Hi Ari,

Have you included the jersey-atom-abdera dependency?

https://jersey.dev.java.net/source/browse/*checkout*/jersey/tags/jersey-1.1.1-ea/jersey/dependencies.html

http://download.java.net/maven/2/com/sun/jersey/contribs/jersey-atom-abdera/1.1.1-ea/jersey-atom-abdera-1.1.1-ea.pom

Paul.

On Aug 19, 2009, at 5:08 PM, Ari Heino wrote:

>
> Hi!
>
> am trying to return Abdera feeds from Jersey resource for Eclipse
> client and
> it can't find MIMEtype providers:
>
> com.sun.jersey.api.client.ClientHandlerException: A message body
> reader for
> Java type, interface org.apache.abdera.model.Feed, and MIME media
> type,
> application/atom+xml, was not found
> at
> com
> .sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
> 255)
> at
> com
> .sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:
> 220)
> at
> client.communication.webservice.Connection.doGetFeed(Connection.java:
> 257)
>
> Here's my client side code to get the Feed inside response:
>
> ClientResponse response = getClient().resource(new
> URI(fullFeedURL)).header("If-Modified-Since",
> lastCheck
> ).accept
> (MediaType
> .APPLICATION_ATOM_XML
> ).type(MediaType.APPLICATION_ATOM_XML).get(ClientResponse.class);
>
> Feed f = response.getEntity(Feed.class);
>
> I've tried creating my own implementation of that provider with
> instructions
> from this blog without any
>
> success:
> http://weblogs.java.net/blog/mhadley/archive/2008/02/integrating_jer_2.html
>
> I can't figure out what I'm missing atm :)
>
> Cheers,
>
> -- .aRi
> --
> View this message in context: http://n2.nabble.com/Abdera-Feeds-not-usable-in-Eclipse---OSGi--tp3472905p3472905.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>