users@jersey.java.net

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

From: Ari Heino <ext.ari.heino_at_tieto.com>
Date: Wed, 19 Aug 2009 10:08:00 -0500 (CDT)

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.