felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reto Bachmann-Gmür <r...@apache.org>
Subject Preventing package to be exposed from system bndle
Date Thu, 06 Jun 2013 22:20:22 GMT

I'm using a bundle that requires
Unfortunately the version exposed by the system bundle on my system is only

I have a bundle that exposes the requested package at a matching version
(mvn:javax.annotation/javax.annotation-api/1.2-b04) however when I add this
bundle I get errors like the following:

 [java] ERROR: Bundle org.glassfish.jersey.core.jersey-common [44]: Error
(org.osgi.framework.BundleException: Constraint violation for package
'javax.annotation' when resolving module 44.0 between existing import
35.0.javax.annotation BLAMED ON [[44.0] package;
(&(package=javax.annotation)(version>=1.1.0)(!(version>=2.0.0)))] and uses
constraint 0.javax.annotation BLAMED ON [[44.0] package; (&(package=
com.google.common.net)(version>=14.0.0)(!(version>=15.0.0))), [9.0]
package; (package=javax.annotation)])

Can I prevent the system bundle from exportingthis package? Or is there an
other solutions?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message