PDA

View Full Version : How to debug the error message


dbrosius
May 24th, 2008, 02:39 AM
I'm getting this error message with one of my bundles


Package uses conflict: Import-Package: org.springframework.beans.factory.support; version="0.0.0"


Now i take this to mean that there are two bundles that provide the package org.springframework.beans.factory.support, and further because one of my export-package items doesn't specify that it uses the above, two different bundles are being used for this above package.

However In eclipse, when i do open type (ctrl-T), and type
org.springframework.beans.factory.support.

I only get one jar file that has this interface.

So the question is, how does one figure out what bundle's manifest is causing the problem and for what package's Export-Package line is missing the appropriate uses=?? line.

I clicked the 'Calculate Uses" button in eclipse for my bundle, but none of my exported packages need beans.factory.support, so it adds nothing. I suppose the other one could be pulled in from other spring bundles, i don't know.

I just don't see if eclipse can only find it once, how this error could be happening.

Costin Leau
May 24th, 2008, 06:14 AM
I wish I could help but I'm not using PDE myself so I don't know what's the answer to your problem. You could try the PDE mailing list/archives/forum or do a google and see if anybody has encountered this.
Additionally, you could use the Eclipse help - it tends to answer most of the common problems.