Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » P2 dev » How to figure out why P2 fails to install my feature?(P2 Provisioning commands)
icon5.gif  How to figure out why P2 fails to install my feature? [message #513758] Thu, 11 February 2010 07:39 Go to next message
Jürgen Kindler is currently offline Jürgen KindlerFriend
Messages: 48
Registered: July 2009
Location: Bonn (Germany)
Member
Hi all,

I'm currently doing my first steps using P2 and finally got stuck figuring out what goes wrong.

The scenario is that I added P2 to a Galileo/OSGi/Swordfish environment (seems to work at first glance as all bundles that can be started are running and I can use provisioning commands on the console).

Now I created a small feature containing a Swordfish provider and a consumer that will contact that provider on startup and exported that including metadata.

So I add the path to my feature site as a repo ...
osgi>provaddrepo file:/Users/jkindler/workspaces/ToolingTestSR2/DeployableFeatureContainer


Create a profile ( Embarrassed I have to admit that I don't know what this does, but without a subsequent provinstall will not work. It also is not mentioned in Scott Lewis' tutorial ...)
osgi> provaddprofile Swordfish file:/Users/jkindler/workspaces/ToolingTestSR2/DeployableFeatureContainer nix


Anyway, it seems that P2 can look inside the contents of my repo:
osgi>provlg
FlightReservationFeature.feature.group 1.0.0.201002090856
FlightReservationFeature.feature.group 1.0.0.201002101347


But for whatever reason it cannot install and it even cannot tell me specifically what went wrong Crying or Very Sad :
osgi> provinstall FlightReservationFeature.feature.group 1.0.0.201002101347 Swordfish

installation failed Cannot complete the install because one or more required items could not be found.


Can somebody give me a hint where to look to figure out where the problem is?

Thanks in advance
Jürgen
Re: How to figure out why P2 fails to install my feature? [message #513873 is a reply to message #513758] Thu, 11 February 2010 14:56 Go to previous message
Jürgen Kindler is currently offline Jürgen KindlerFriend
Messages: 48
Registered: July 2009
Location: Bonn (Germany)
Member
So ... I finally managed to get to the point where the whole thing fails ... Uh Oh

Inside the SimplePlanner, I found that the conversation from error to status stripped off some information I would have needed:
Status = Status ERROR: org.eclipse.equinox.p2.director code=1 Cannot complete the install because one or more required items could not be found. null children=[Status ERROR: org.eclipse.equinox.p2.director code=0 Software being installed: FlightReservationFeature 1.0.0.201002101347 (FlightReservationFeature.feature.group 1.0.0.201002101347) null Status ERROR: org.eclipse.equinox.p2.director code=0 Missing requirement: FlightResCons 1.0.0.201002101347 (flightResCons 1.0.0.201002101347) requires 'package META-INF.cxf 0.0.0' but it could not be found null Status ERROR: org.eclipse.equinox.p2.director code=1 Cannot satisfy dependency: null children=[Status ERROR: org.eclipse.equinox.p2.director code=0 From: FlightReservationFeature 1.0.0.201002101347 (FlightReservationFeature.feature.group 1.0.0.201002101347) null Status ERROR: org.eclipse.equinox.p2.director code=0 To: flightResCons [1.0.0.201002101347] null]]

The point is that in the generated META_INF we access spring configurations of the cxf bundle via the classpath
Import-Package: META-INF.cxf,
...

... and the planner expects that it has to get that META-INF.cxf package from somewhere. Rolling Eyes

Question Is it possible to teach the Planner not to do this Question

Cheers
Jürgen
Previous Topic:Errors mirroring Eclipse-Updatesites
Next Topic:NPE when accessing Update-site
Goto Forum:
  


Current Time: Fri Apr 26 21:18:21 GMT 2024

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

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

Back to the top