users@jersey.java.net

[Jersey] Re: Jersey 2.0, OSGi, and Bundle Dependencies

From: Day, Jem <jday_at_paypal.com>
Date: Mon, 23 Jul 2012 22:54:56 +0000

Jakub,

Thanks, I'll take a look when I get a chance.

The issue I was seeing was that some of the Jersey bundles were expressing
a dependency on "sun.misc".

Jem...

On 7/23/12 7:13 AM, "Jakub Podlesak" <jakub.podlesak_at_oracle.com> wrote:

>Hi Jem,
>
>a coherent set of bundles should be included in the following test
>configuration:
>
>https://github.com/jersey/jersey/blob/master/tests/osgi/functional/src/tes
>t/java/org/glassfish/jersey/osgi/test/basic/BasicOsgiIntegrationTest.java
>
>The "sun.misc" system package should not be neccessary there. You might
>want to include other Jersey bundles depending on what Jersey
>features you need.
>
>HTH,
>
>~Jakub
>
>[1]https://github.com/jersey/jersey/tree/master/tests/osgi/functional
>
>On 7/18/12 1:21 AM, jday_at_paypal.com wrote:
>> Hi,
>>
>> I've spent the past couple of days try to construct a Karaf "feature"
>> for Jersey. I've been basing this on the jar and libraries contained in
>> the RI. My current bundle set looks like this:
>>
>> karaf_at_root>features:info Jersey
>> Description of Jersey 1.0.1-SNAPSHOT feature
>> ----------------------------------------------------------------
>> Feature has no configuration
>> Feature has no configuration files
>> Feature has no dependencies.
>> Feature contains followed bundles:
>> mvn:com.googlecode.guava-osgi/guava-osgi/11.0.1
>> mvn:org.glassfish.hk2.external/asm-all-repackaged/2.0.5
>> mvn:org.glassfish.hk2/auto-depends/2.0.5
>> mvn:org.glassfish.hk2/hk2-api/2.0.5
>> mvn:org.glassfish.hk2.external/javax.inject/2.0.5
>> mvn:org.glassfish.hk2/osgi-resource-locator/1.0.1
>> mvn:org.glassfish.jersey.core/jersey-common/2.0-m05
>> mvn:org.glassfish.jersey.core/jersey-server/2.0-m05
>>
>> mvn:org.glassfish.jersey.containers/jersey-container-servlet-core/2.0-m
>> 05
>> mvn:javax.ws.rs/javax.ws.rs-api/2.0-m09
>> mvn:org.codehaus.jettison/jettison/1.1
>>
>> It seems that the bundle for "auto-depends" has an explicit import of
>> "sun.misc" which is a bit of show-stopper.
>>
>> I tried stepping up the version of HK to 2.1.0 but got into a whole
>> different world-of-hurt - I would admit to being somewhat bemused by
>> the structure and artifacts of that project.
>>
>> If anybody has any suggestions (or even better a coherent set of
>> bundles) I'd greatly appreciate it.
>>
>> Thanks in advance.
>>
>> Jem...
>>
>>
>