[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] Problem with "uses" constraint

Hi,

I have been reading p46 of R4 spec over and over again, and I think I have 
found a problem in Equinox, but need some clarification if my thinking is 
right...


We start Equinox with;

 org.eclipse.osgi            (3.2.0.v20060510)
 org.eclipse.osgi.services   (3.1.100.v20060511)
 pax-logging-service         (0.8.1)

My bundle (Pax Logging) the following Imports and Exports;
(formatting added for readability)

Import-Package: 
    org.knopflerfish.service.log, 
    org.ops4j.pax.logging, 
    org.osgi.framework, 
    org.osgi.service.log, 
    org.w3c.dom, 
    org.xml.sax, 
    org.xml.sax.helpers

Export-Package: 
    org.ops4j.pax.logging;
       version=1.0, 
    org.knopflerfish.service.log;
       uses:="org.osgi.service.log,org.osgi.framework";
       version=1.1,
    org.osgi.service.log;
       version=1.3.0


Equinox reports the following message;
 org.osgi.framework.BundleException: The bundle could not be resolved. Reason: 
Missing Constraint: Import-Package: org.knopflerfish.service.log; 
version="0.0.0", Package uses conflict: Import-Package: org.osgi.service.log; 
version="0.0.0", Missing Constraint: Import-Package: org.osgi.service.log; 
version="0.0.0"

IIUIC, the spec agrees with me when I think that this is no a conflict 
situation at all. 

Furthermore, if I load pax-logging-service before org.eclipse.osgi.services, 
there are also no constraint conflict.

Can anybody share some light on what is happening??


Cheers
Niclas