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

Group,

Thanks for all the help. The powerpoint was also a huge help. I've gotten to the point where I've realized that the
bundle, or its dependencies, is not resolving. What does this phrase "to resolve" mean? If it's a matter of are the
packages you checked out able to build themselves, then I've been able to do that, and I'm still getting a missing
bundle unresolved error. If it isn't, then coud someone define what it means for a package to resolve? 
Thanks,

Melih Onvural
melih.onvural@xxxxxxxxx

Attached is my error message in case anyone has run into this before:

org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.core.runtime; bundle-version="0.0.0"
        at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker (BundleHost.java:294)
        at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:256)
        at org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._start(FrameworkCommandProvider.java :232)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:145)
        at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand (FrameworkConsole.java:293)
        at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:278)
        at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java :213)
        at java.lang.Thread.run(Unknown Source)

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