Hi, If your other bundle is exporting the javax.* packages with an explicit version you might import-package the packages in your user bundle with the "same" version.
E.g. the provider exports javax.servlet;version=2.5, so you may declare Import-Package: javax.servlet;version=2.5 and get the proper export. HTH Regards Felix Andrea Zoppello schrieb: > Hi all, > > I've the following problem: I'm starting my OSGi container ( Equinox ) > with jdk1.6, so as the result > i've the system bundle exporting the javax.* packages with version "0.0.0" > > From a my client bundle i want that during the resolution my bundle will > not use the javax.* package exported > by the system bundle, but the ones exported by another one. > > One of the possible solution, could be to use the require bundle instead > of import package, but i'd still > prefer the import-package. > > Maybe i'm missing something, but i don't know how to solve that problem... > > Is there any way to solve the general problem of having bundle "not > wired" with packages exported by > the system bundle??? > > Andrea > > _______________________________________________ > OSGi Developer Mail List > [email protected] > https://mail.osgi.org/mailman/listinfo/osgi-dev > _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
