Home » Eclipse Projects » Equinox » Missing constraint error when validating bundles
Missing constraint error when validating bundles [message #111524] |
Wed, 04 June 2008 13:21 |
Eclipse User |
|
|
|
Originally posted by: chopkins.cra.com
Hi -
I'm using Eclipse 3.3.2 and am running into a problem with a bundle (call it
Bundle X) that another group has developed. A little background on our
environment. We have defined a Target Platform that includes all of our
required bundles that we are developing against. We also include the
following Eclipse/Equinox bundles as part of that Target Platform:
org.eclipse.equinox.ds_0.1.0.v20071022.jar
org.eclipse.equinox.event_1.0.100.v20070516.jar
org.eclipse.equinox.util_0.1.0.v20070919.jar
org.eclipse.osgi.services_3.1.200.v20070605.jar
org.eclipse.osgi_3.3.0.v20070530.jar
Bundle X is distributed as a directory as it references embedded jar files
in its classpath. I have pasted the MANIFEST.MF for Bundle X below. When I
startup Eclipse, I'm able to compile my bundles that depend on packages
exported Bundle X. However, when I try to validate the bundles in my run
configuration (or run the project) I get the following error for all
packages my bundles depend on that are exported from Bundle X:
Missing Constraint: Import-Package: com.draper.jaguar.datacore;
version="0.0.0"
Has anyone seen this behavior or are we doing something obviously wrong
here?
Thanks,
Chris
MANIFEST.MF
-----------------
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Draper_Datacoreore Plug-in
Bundle-SymbolicName: com.draper.jaguar.datacore
Bundle-Version: 1.0.0
Bundle-Vendor: C.S. Draper Laboratory
Bundle-ClassPath: lib/baseutils.jar,
lib/datacore.jar,
lib/ipbeans.jar,
lib/log4j-1.2.7.jar,
lib/modelutils.jar,
lib/xbean.jar,
lib/xercesImpl.jar,
.
Export-Package: com.bbn.jaguar.models,
com.draper.jaguar.datacore;version="1.0.0",
com.draper.jaguar.datacore.activity,
com.draper.jaguar.datacore.activitycapability,
com.draper.jaguar.datacore.engine,
com.draper.jaguar.datacore.engine.impl,
com.draper.jaguar.datacore.entity,
com.draper.jaguar.datacore.event,
com.draper.jaguar.datacore.exception,
com.draper.jaguar.datacore.inout,
com.draper.jaguar.datacore.inout.factory,
com.draper.jaguar.datacore.manager,
com.draper.jaguar.datacore.manager.impl,
com.draper.jaguar.datacore.models,
com.draper.jaguar.datacore.objective,
com.draper.jaguar.datacore.plan,
com.draper.jaguar.datacore.shape,
com.draper.jaguar.datacore.simpletype,
com.draper.jaguar.datacore.spatialspec,
com.draper.jaguar.datacore.statevariable,
com.draper.jaguar.datacore.struct,
com.draper.jaguar.util,
mil.darpa.jaguar.modelIndex,
mil.darpa.jaguar.modelIndex.impl
|
|
| |
Re: Missing constraint error when validating bundles [message #111699 is a reply to message #111680] |
Tue, 10 June 2008 14:32 |
Eclipse User |
|
|
|
Originally posted by: chopkins.cra.com
Yeah, I've been meaning to reply to my own post. What this ended up being
was that the plugin in question was not selected in my Eclipse run
configuration. Once I checked the plugin so that it started as part of the
run configuration, everything worked as expected.
So, as you say, it was logical but not obvious.
- Chris
"Kees Pieters" <cees_pieters@wxs.nl> wrote in message
news:18481941.8731213104758424.JavaMail.root@cp1.dzone.com...
> This kind of error typically means that com.draper.jaguar.datacore
> was not found in the target environment. My guess is that you should
> include bundle X in the plugin directory of your target (for instance by
> exporting it). If you have already done this, then maybe the version
> constraints of bundle X do not match the requirements of the other
> bundles.
> I have had similar issues myself, and it usually takes a bit of fooling
> around with these issues, but up to now they have always turned out to be
> very logical.
>
> Good luck
>
> Kees
|
|
|
Goto Forum:
Current Time: Fri Apr 26 19:18:43 GMT 2024
Powered by FUDForum. Page generated in 0.03988 seconds
|