Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Bundle Validation
Bundle Validation [message #510469] Wed, 27 January 2010 15:03 Go to next message
Jon Buck is currently offline Jon BuckFriend
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 #510471 is a reply to message #510469] Wed, 27 January 2010 15:22 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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

--
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


Re: Bundle Validation [message #510498 is a reply to message #510471] Wed, 27 January 2010 15:59 Go to previous messageGo to next message
Jon Buck is currently offline Jon BuckFriend
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 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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


Re: Bundle Validation [message #510543 is a reply to message #510533] Wed, 27 January 2010 19:13 Go to previous messageGo to next message
Jon Buck is currently offline Jon BuckFriend
Messages: 29
Registered: July 2009
Junior Member
Thanks Paul I get it now...

It doesn't seem right to me that your plugin should contribute
dependencies and I assumed that because they were recognized and listed
as dependencies within the feature that eclipse knew how to resolve and
include them...

I have gone with your suggestion of having a dependencies feature and
that is working a treat...

Thanks again
Jon

On 1/27/2010 12:23 PM, Paul Webster wrote:
> but I don't think the tooling has quite caught up
Re: Bundle Validation [message #511175 is a reply to message #510543] Sat, 30 January 2010 18:44 Go to previous message
Wim Jongman is currently offline Wim JongmanFriend
Messages: 418
Registered: July 2009
Senior Member
Hi,

If you make a product based on plugins then you must also include all your
plugins in the product config. Why would that be any different for features?

Best regards,

Wim


> Thanks Paul I get it now...
>
> It doesn't seem right to me that your plugin should contribute
> dependencies and I assumed that because they were recognized and listed
> as dependencies within the feature that eclipse knew how to resolve and
> include them...
>
> I have gone with your suggestion of having a dependencies feature and
> that is working a treat...
>
> Thanks again
> Jon
>
> On 1/27/2010 12:23 PM, Paul Webster wrote:
>> but I don't think the tooling has quite caught up
Previous Topic:Save view as jpg image
Next Topic:Any stand-alone CVS client?
Goto Forum:
  


Current Time: Mon Nov 24 01:27:07 GMT 2014

Powered by FUDForum. Page generated in 0.10206 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software