Bundle Validation [message #510469] |
Wed, 27 January 2010 15:03 |
Jon Buck Messages: 29 Registered: July 2009 |
Junior Member |
|
|
Hi All,
Does anyone know if there is a bug around creating an RCP product using
features?? I ask this as whenever I create a product configuration using
features it never validates and always comes up with tons of Missing
Constraint errors, oddly the only bundles it seems to be OK with are the
eclipse core runtime and ui bundles, every other required bundle shows
up as a missing resource constraint.
Apologies but as this is a product for my company it would not be
appropriate for me to paste any code here so I understand the
difficulties in trying to debug this way i.e not be able to see anything
but I am desperate...
Basically my setup is this eclipse 3.5 setup to use an eclipse 3.2.2
target platform, my application is made up of 3 features so in the
product configuration I specify the three features and the rcp feature.
The features are configured correctly in my estimation, i.e they specify
the plugins they include and also the bundles they require to be there.
I have tried specifying version numbers, not specifying version numbers,
I double/triple checked that the bundles exist in the target runtime but
still I get Missing Constraints when I click on the Validation button in
the overview page, in addition to this if I click on the Launch and
eclipse application link then the app doesn't launch because again it is
failing to calculate the correct dependencies...
Now if open the Run Configuration and click on the Add Required Plug-ins
button it adds the missing bundles and launches successfully...
I have spent hours comparing the bundles I have created against other
bundles to see if there is something I have missed, I have compared
feature.xml files from eclipse projects to see if I have not included
something there....
I am at my wits end and I need to produce a build of this product soon...
Please HELP!!!!!! any ideas greatly appreciated....
Thanks
Jon
|
|
|
|
Re: Bundle Validation [message #510498 is a reply to message #510471] |
Wed, 27 January 2010 15:59 |
Jon Buck Messages: 29 Registered: July 2009 |
Junior Member |
|
|
Hey Paul,
Thanks for replying..
I need to make use of some of the commons projects (Lang, Collections,
Codec etc.), Castor, Jasypt, HTTP Client, Jakarta Regexp... so what I
did was to create those as bundles and install them in the target
platform, my feature does not provide them as part of the feature
however they are listed as dependencies and available in the target
platform.
I did it this way as I didn't think it was right that these dependency
type projects were included as part of the feature.. is that wrong??
should I have specified these plug-ins as being provided by the feature?
Thanks
Jon
On 1/27/2010 9:22 AM, Paul Webster wrote:
> if you are feature based, your 3 features + the RCP feature must include
> all of the plugins that are needed to run.
>
> i.e. are you missing bundles simply not included in one of your 3 features?
>
> PW
>
|
|
|
Re: Bundle Validation [message #510533 is a reply to message #510498] |
Wed, 27 January 2010 18:23 |
|
Jon Buck wrote:
> Hey Paul,
>
> Thanks for replying..
>
> I need to make use of some of the commons projects (Lang, Collections,
> Codec etc.), Castor, Jasypt, HTTP Client, Jakarta Regexp... so what I
> did was to create those as bundles and install them in the target
> platform, my feature does not provide them as part of the feature
> however they are listed as dependencies and available in the target
> platform.
>
> I did it this way as I didn't think it was right that these dependency
> type projects were included as part of the feature.. is that wrong??
> should I have specified these plug-ins as being provided by the feature?
You need to get those plugins in there somehow. If you use a feature
based product file to generate your launch config, AFAIK it will only
fill in the plugins contained in the feature. There might even be a bug
open for that.
I know that when building, p2+PDE *will* honour those dependencies and
create dependency chains so that installing the feature will pull in
plugins not contained in any feature ... but I don't think the tooling
has quite caught up to that yet.
I think for our product we made an "extra runtime" feature where we
contained extra plugins that we needed, but weren't part of our plugins.
PW
--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03762 seconds