Double check that last assertion. The error message states that the package is 
exported by bar as well as foo.  

Neil 

-- 
Neil Bartlett
Sent from a phone


On Thursday, 21 May 2015 at 22:28, Andy Lee wrote:

> I've turned up felix logging to debug and I'm getting the following message
> during startup:
> 
> 
> DEBUG: Candidate permutation failed due to a conflict between imports; will
> try another if possible. (org.osgi.service.resolver.ResolutionException:
> Uses constraint violation. Unable to resolve resource core [core [19](R
> 19.0)] because it is exposed to package 'com.mine.foo' from resources foo [
> foo [5](R 5.0)] and bar [bar [7](R 7.0)] via two dependency chains.
> 
> Chain 1:
> core [core [19](R 19.0)]
> import: (&(osgi.wiring.package=com.mine.foo
> )(version>=1.5.0)(!(version>=2.0.0)))
> |
> export: osgi.wiring.package: com.mine.foo
> foo [foo [5](R 5.0)]
> 
> Chain 2:
> core [core [19](R 19.0)]
> import: (osgi.wiring.package=com.mine.init)
> |
> export: osgi.wiring.package: com.mine.init; uses:=com.mine.foo
> export: osgi.wiring.package=com.mine.foo
> bar [bar [7](R 7.0)])
> 
> 
> Why is it complaining? Only the 'foo' bundle exports com.mine.foo, so
> there can't be conflicting exports.
> 
> 
> 
> --Andy 

Reply via email to