Hi all,
Maybe I did not configure my dependencies properly but my configuration was
working with jersey 2.0-rc1 but if I move to 2.0 it fail with the following
error message:
java.lang.Exception: Could not start bundle
mvn:org.glassfish.jersey.containers/jersey-container-servlet-core/2.0 in
feature(s) cargo-rs-1.0.0-SNAPSHOT: The bundle
"org.glassfish.jersey.containers.jersey-container-servlet-core_2.0.0 [109]"
could not be resolved. Reason: Missing Constraint: Import-Package:
org.glassfish.jersey.internal; version="[2.0.0,3.0.0)"
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:482)[40:org.apache.karaf.features.core:2.3.1]
at
org.apache.karaf.features.internal.FeaturesServiceImpl$2.run(FeaturesServiceImpl.java:1150)[40:org.apache.karaf.features.core:2.3.1]
Caused by: org.osgi.framework.BundleException: The bundle
"org.glassfish.jersey.containers.jersey-container-servlet-core_2.0.0 [109]"
could not be resolved. Reason: Missing Constraint: Import-Package:
org.glassfish.jersey.internal; version="[2.0.0,3.0.0)"
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)[osgi-3.8.0.v20120529-1548.jar:]
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)[osgi-3.8.0.v20120529-1548.jar:]
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)[osgi-3.8.0.v20120529-1548.jar:]
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)[osgi-3.8.0.v20120529-1548.jar:]
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:292)[osgi-3.8.0.v20120529-1548.jar:]
at
org.apache.karaf.features.internal.FeaturesServiceImpl.installFeatures(FeaturesServiceImpl.java:479)[40:org.apache.karaf.features.core:2.3.1]
... 1 more
What is strange, it is the dependency import on a package named internal...
Could you help me?
Thanks,
Romain.