users@jersey.java.net

[Jersey] Jersey 2.0, OSGi, and Bundle Dependencies

From: <jday_at_paypal.com>
Date: Tue, 17 Jul 2012 23:21:40 +0000 (GMT)

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...