Skip to main content

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

Tom,

Thanks for e-mail. There is a lot of new terminology here that I'm trying to learn on the fly. I can't find the uses:= directive anywhere,
so I can say that I don't have the same bug. What I don't know is whether a bundle is in my target or not. What I've done is build the

org.eclipse.ohf.bridge.webtest

project and include the following projects in its build path libraries

org.eclipse.equinox.servlet.bridge.http
org.eclipse.equinox.servlet.bridge.launcher
org.eclipse.equinox.http
org.eclipse.equinox.http.registry
org.eclipse.osgi

I am worried that I'm taking an absolutely wrong approach, but as I said earlier, it's a bit of learning on the fly. Is my approach flawed,
and that's why I'm getting the errors? Thanks for your help,

Melih Onvural
melih.onvural@xxxxxxxxx

On 6/2/06, Thomas Watson < tjwatson@xxxxxxxxxx> wrote:

Do you have exports in your bundle which use the uses:= directive?  If not then this is not the same issue.

Do you include the org.eclipse.equinox.servlet.bridge.launcher bundle in your target?  Is that bundle also resolved?

Tom



"Melih Onvural" <melih.onvural@xxxxxxxxx>

06/02/2006 01:51 PM

Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
"Equinox development mailing list" <equinox-dev@xxxxxxxxxxx>
cc

Subject
Re: [equinox-dev] Problem with "uses" constraint







I'm getting a similar error, but with the error message reading:

org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.equinox.servlet.bridge.launcher ; bundle-version="0.0.0"

Is this the same problem? Thanks,

Melih Onvural

melih.onvural@xxxxxxxxx

On 6/2/06, Thomas Watson <tjwatson@xxxxxxxxxx > wrote:

I am able to reproduce.  I opened bug
https://bugs.eclipse.org/bugs/show_bug.cgi?id=145067 to track the issue.  The issue is the resolver does not properly handle when an export is dropped as a result of importing the package from another bundle.  This causes us to inaccurately flag a uses conflict while processing other imports for the bundle.

Thanks Niclas.


Tom



Niclas Hedhman < niclas@xxxxxxxxxxx>
Sent by:
equinox-dev-bounces@xxxxxxxxxxx

06/02/2006 08:40 AM

Please respond to
Equinox development mailing list <
equinox-dev@xxxxxxxxxxx >


To
equinox-dev@xxxxxxxxxxx
cc

Subject
[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
_______________________________________________
equinox-dev mailing list

equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________
equinox-dev mailing list

equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev


_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev




Back to the top