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 13:51:33 +0200

On Aug 20, 2009, at 12:10 PM, Ari Heino wrote:

>
>
>
> Paul Sandoz wrote:
>>
>> 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.
>>
>>
>
> Yes, i have all those dependencies (of 1.0.3.1 release which we are
> using
> atm).
>

OK. The client should be loading the readers/writers from the relevant
META-INF/service files.

I am guessing at the META-INF/service cannot be found due to OSGi
class loading behavior. Note that we do intend to make all jersey
modules OSGi modules but at the moment this is not the case.

One way you may be able to work around this is to explicitly register
the Feed reader:

   ClientConfig cc = new DefaultClientConfig();
    
cc
.getClasses
().add
(com.sun.jersey.atom.abdera.impl.provider.entity.FeedProvider.class)
   Client c = new Client(cc);

Paul.

>
> --
> View this message in context: http://n2.nabble.com/Abdera-Feeds-not-usable-in-Eclipse-OSGi-tp3472905p3478104.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
>