Validate plug-ins: Missing Constraint on bundle [message #1716220] |
Wed, 02 December 2015 10:00 |
|
Dear experts,
I am developing an RCP application:
-- I have a feature-based product P which includes my feature F.
-- feature F wraps bundle B1
-- B1 depends on B2
When I run P, I get the usual "No application id has been found" but I am used to this, and I usually use the Add Required Plug-ins button in my Run Configuration and I'm OK.
Now time has come to deploy the application and I'm facing troubles.
Troubleshooting my issues, I realised that if I validate my plug-ins in my Run Configuration, I get this:
Missing Constraint: Require Bundle: B2; bundle-version="0.0.0"
Indeed it does not get included automatically in my Run Configuration, although it is declared as a bundle dependency in B1's MANIFEST (Require-Bundle directive).
This is indeed the problem I am facing while launching my deployed executable.
The question is: Why U NO include B2??
Ok.. seriously: any idea?
Thank you very much,
-Piero
[Updated on: Wed, 02 December 2015 10:01] Report message to a moderator
|
|
|
|
Re: Validate plug-ins: Missing Constraint on bundle [message #1716257 is a reply to message #1716231] |
Wed, 02 December 2015 14:11 |
|
Thanks Dirk.
Exactly B2 is not part of F, but I thought that dependencies at bundle-level where not ignored. Indeed I realized that it is necessary to include features including B2 in the feature.xml file.
Side note:
In case B2 is not included in any feature (eg. an external library), I manually copied B2.jar inside B1 (+added to classpath +exported). Is this THE way to go in such cases?
Now, despite the validation of the dependencies does not detect anything wrong, I see that the magic button "Add Required Plug-ins" in my Run configuration is still adding more plugins.
How can I detect and include in my product all these new required plug-ins without a brute-force diff of my run configurations?
What is THE way here as well?
Thanks
-Piero
[Updated on: Wed, 02 December 2015 14:13] Report message to a moderator
|
|
|
|
Re: Validate plug-ins: Missing Constraint on bundle [message #1716340 is a reply to message #1716285] |
Thu, 03 December 2015 07:09 |
|
Dear Dirk,
Now, despite the validation of the dependencies does not detect anything wrong
indeed validation does not detect missing requirements, but then plug-ins are still added when I click on Add Required.
Furthermore, when no existing feature includes a given packaged plug-in, should I manually import the jar file in my bundle or is there some other more orthodox way to achieve that?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03781 seconds