[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[p2-dev] RE: Equinox p2 Webapp QuickStart
- From: Warren_Paul@xxxxxxx
- Date: Mon, 1 Dec 2008 12:41:43 -0500
- Delivered-to: email@example.com
- Thread-index: AclKdoWlrAj9fGKSS5GU8RXaNFPBFQJYGtZA
- Thread-topic: Equinox p2 Webapp QuickStart
Apologies is you
got my previous, incomplete email. I accidentally hit
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
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:
null Status ERROR: org.eclipse.equinox.p2.director code=0 No solution found
because of a trivial contradiction in
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
I saw your note on the dev-list. That's the right way to
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.
Warren_Paul---11/19/2008 04:35:23 AM---Hi Simon,
11/19/2008 04:35 AM
RE: Equinox p2 Webapp
As per your request I've added
a discussion page here:-
I'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
From: Simon Kaegi
17 November 2008 19:31
To: Warren, Paul
Cc: John Arthorne
Subject: Re: Equinox p2 Webapp
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.
Warren_Paul---11/17/2008 11:57:29 AM---Hi Guys,
John Arthorne/Ottawa/IBM@IBMCA, Simon
11/17/2008 11:57 AM
Equinox p2 Webapp QuickStart
Please forgive the intrusion. I got your email addresses from the
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.
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