[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[p2-dev] RE: Equinox p2 Webapp QuickStart
|
Hi Folks,
Apologies is you
got my previous, incomplete email. I accidentally hit
send!?!
Anyway, what I
was trying to say was...
I'm trying to
create a new p2 profile from scratch (in code) that will be sufficient enough to
support further provisioning operations through a custom UI.
Because this creation is
happening on a running system (during
startup) I am attempting to do this by:-
-
creating and registering a metadata and artifact repository to eventually hold
the local plugins
-
generating a set of IUs by introspecting
the features and plugins folders, adding JRE IUs and default config IUs
-
creating a new, empty profile
-
executing a provisioning plan created from
a profile change request (that includes
the above created bundle set)
However, problems occur
during creation of the provisioning
plan and as I've not really looked into this
area much - just treated it as a black box thus far. The actual
warnings/errors I get back from the
planner are:-
Status ERROR:
org.eclipse.equinox.p2.director code=0 Problems resolving provisioning plan.
null children=[Status WARNING: org.eclipse.equinox.p2.director code=0 Unable to
satisfy dependency from 1228149811886 0.0.0.1228149811886 to requiredCapability:
org.eclipse.equinox.p2.iu/self.org.eclipse.update.feature.default/[1.0.0,1.0.0].
null Status ERROR: org.eclipse.equinox.p2.director code=0 No solution found
because of a trivial contradiction in
C:\DOCUME~1\warrep\LOCALS~1\Temp\p2Encoding4643.opb. null]
So what I am after is confirmation that the above flow is
correct. Am I missing anything? Let me know if I need more
information and I will supply it.
And also any help with the actual p2
warnings/errorss would be gratefully appreciated. What is '1228149811886 0.0.0.1228149811886
'? What is a trivial contraditcion? How do I resolve
it? Maybe I am missing some fundamental IU or something like
that?
Many thanks,
_Paul
Paul,
I saw your note on the dev-list. That's the right way to
procede.
PerisistenceMetadata was sort of a catchall for generating metadata
-- sometthing like the PublisherHelper is now although we try to use the various
Publisher actions directly if possible. One useful class to look at is
RepositoryListener as it shows a more modern way for how we're generating
metadata and artifacts from the contents of a directory. One of the things to
still be sorted out is how to generate the other IUs (like the JRE metadata for
example) in the servletbridge context. I'm really hoping we'll have time to get
to this more general profile boot strapping problem before Christmas but I'm not
sure we'll be there. If you can figure out anything in that area in particular
that would be helpful.
-Simon
Warren_Paul---11/19/2008 04:35:23 AM---Hi Simon,
 From: |
 Warren_Paul@xxxxxxx |
 To: |
 Simon
Kaegi/Ottawa/IBM@IBMCA |
 Cc: |
 John
Arthorne/Ottawa/IBM@IBMCA |
 Date: |
 11/19/2008 04:35 AM |
 Subject: |
 RE: Equinox p2 Webapp
QuickStart |
Hi Simon,As per your request I've added
a discussion page here:-http://wiki.eclipse.org/Talk:Equinox_p2_Webapp_QuickStartI'm not sure how many folks
will pick up on this so is there something I should do to publicize this? Should
I also post something to the dev list? How do I go about doing that?
Also - one
quick question on the code if I may. In your original you used a class called
PersistenceMetadata. I cant find an equivalent of this in today's code line. Any
clues?Many
thanks_Paul
From: Simon Kaegi
[mailto:Simon_Kaegi@xxxxxxxxxx]
Sent:
17 November 2008 19:31
To: Warren, Paul
Cc: John Arthorne
Subject: Re: Equinox p2 Webapp
QuickStart
Hi Paul,
I'll add you to the list of folk interested in
this use case.
Although I'd love to I simply haven't had time to look at
servletbridge integration for some time now. I too also liked the process of
generating a bootstrap profile and it's a matter of sorting out how this process
integrates neatly with the generation process we have in p2.
e.g. What I did
at the time was cool but likely a dead-end unless we can really tie it in well
to the main line path.
If you want to take up the cause that would be
great. On the equinox dev list Scott Lewis has also been making noises like he's
making some progress. Perhaps start a thread and wiki page to try and collect
thoughts, requirements, and interested parties.
-Simon
Warren_Paul---11/17/2008 11:57:29 AM---Hi Guys,
 From: |
 Warren_Paul@xxxxxxx |
 To: |
 John Arthorne/Ottawa/IBM@IBMCA, Simon
Kaegi/Ottawa/IBM@IBMCA |
 Date: |
 11/17/2008 11:57 AM |
 Subject: |
 Equinox p2 Webapp QuickStart |
Hi
Guys,
Please forgive the intrusion. I got your email addresses from the
following page:-
http://wiki.eclipse.org/Equinox_p2_Webapp_QuickStart
I am trying to do
exactly this. I've modified the servletbridge to add a release version of
ganymede equinox and have had some success adding p2 to that. However, creating
the p2 profile is a somehwhat ad hoc process, as I understand it.
I much prefer the
technique you have used here whereby equinox is bootstrapped with a generator
bundle that creates a profile based on what is there already.
Unfortunately,
judging by all the .prov (as opposed to .p2) packages your wrote this against an
older (pre-release) version of equnox. Do you have a more up-to-date version of
the quickstart code that you could post OR, as I need to do it anyway, can I
help you create a new version? Be happy to contribute it back to the
community.
Many thanks,
_Paul