admin@glassfish.java.net

Re: Jersey OSGi issue? Was: Re: dev test for admin cli

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 18 Jun 2010 20:57:54 +0200

On Jun 18, 2010, at 8:03 PM, Ludovic Champenois wrote:

> On 6/18/10 10:53 AM, Jane Young wrote:
>> Just reverted: svn rev 37904.
>>
>
> Many thanks.
>
> On my side I was able to also avoid the cnf exception by avoiding
> the 2 calls to getMediaTypeMappings:
>
> ResourceConfig rc = new DefaultResourceConfig(classes);
> // rc.getMediaTypeMappings().put("xml",
> MediaType.APPLICATION_XML_TYPE);
> // rc.getMediaTypeMappings().put("json",
> MediaType.APPLICATION_JSON_TYPE);
>
> in our lazy initializer.
> It's better if Jakub csan take a look at that early next week. Seems
> to be an osgi dependency declaration issue on Jersey side.
>

It might be because we changed the distribution in GF to use the
individual jersey modules instead of the jersey-bundle.

So the OSGI dependencies of the REST admin module might need to be
updated to reflect that.

Paul.