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 Watson and Peter Kriens also did an excellent tutorial at EclipseCon a couple months ago.  Check out
        http://www.eclipse.org/equinox/documents/TutorialEclipseCon06.ppt

As for your development problems, Melih, I suspect you are working at this too hard.  If you are using Eclipse as your IDE you should not be messing with build paths, classpaths, ...  PDE (Eclipse's Plugin Development Environment) does all of this for you.  You should just get the bundle/plugin projects in your workspace (import or check out from CVS) or *even better* just add them to your target platform.  There is quite a bit of doc in the Eclipse help system on how to do this.  Look for the sections on PDE.  Just remember, everywhere you see "plugin" you can read "bundle" since they are the same thing.

Jeff




Peter Neubauer <peter@xxxxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

06/02/2006 03:59 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





Melih,
I suspect this is just a normal import in your Manifest lacking. You have to explicitely import the packages that your bundle is going to need from other bundles, and export them there. A good tutorial on getting up to speed with OSGi development is at http://www.knopflerfish.org/programming.html.

/peter
On Jun 2, 2006, at 8:51 PM, Melih Onvural wrote:

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