On Aug 20, 2009, at 3:28 PM, Ari Heino wrote:
>
>
> Does that
> com.sun.jersey.atom.abdera.impl.provider.entity.FeedProvider.class
> have provider for "application/atom+xml" media type or some other?
@Consumes({"application/atom+xml", "application/xml", "text/xml",
"application/atom+json", "application/json"})
@Produces({"application/atom+xml", "application/xml", "text/xml",
"application/atom+json", "application/json"})
public class FeedProvider extends
AbstractCompletableReaderWriter<Feed> { ... }
As i said i suspect it may be a class loading issue w.r.t. OSGi.
Basically the class loader that is used to load the Client class
cannot see the META-INF/services file in the jersey-atom-abdera jar.
Can you access the class explicitly like previous gave an example of
e.g.:
ClientConfig cc = new DefaultClientConfig();
cc
.getClasses
().add
(com.sun.jersey.atom.abdera.impl.provider.entity.FeedProvider.class)
Client c = new Client(cc);
?
Paul.