May 13th, 2008, 11:13 AM
Import-Package not satisfied unless exporter and importer are in a PAR
I have a strange problem here...
As the title suggests, if I have a bundle A exporting a package P, and another Bundle B importing this same package P, then, when starting s2AP, a nasty exception blows on my face :
com.springsource.platform.osgi.framework.UnableToS atisfyBundleDependenciesException: Unable to satisfy dependencies of bundle 'djo.cc.dt' at version '1.0.0': Cannot resolve: djo.cc.dt
Unsatisfied leaf constraints:
Bundle: djo.cc.dt_1.0.0 - Import-Package: djo.cc.foundation; version="0.0.0"
Did you mean: 'javax.activation'?
If I place the bundles A and B in a PAR, and deploy this PAR in S2AP, no problem at all.
Hell, this worked perfectly before (not grouping the exporter and the importer in the same par) ...
Anyway, here are some excerpts from my code:
Bundle-Name: Foundation Bundle
- Bundle B:
Bundle-Name: Euro Bundle
So, what I'm I doing wrong ?