The fragment was installed first. I know it was working because it was first simply adding the log4j.xml to the Host classpath, which did work. Once the fragment was changed to try to add a Capability Requirement, I expected the host to be "Installed", but instead it resolved and started without the Capability being provided by any bundle.
On Mon, Mar 3, 2014 at 2:12 AM, Marcel Offermans < [email protected]> wrote: > Hello Nick, > > From your description I cannot determine if you first installed, resolved > and started the host and then installed the fragment or if the fragment was > already installed at the point where the host resolved. I'm asking because > that's a common pitfall when dealing with fragments: if you install them > after the host has already been resolved, "nothing happens". > > Greetings, Marcel > > > On 03 Mar 2014, at 5:42 , Nick Baker <[email protected]> wrote: > > > Just a heads-up, > > > > According to the specs, it should be possible for a Fragment to add a > > Require-Capability to a Host. I tried this with Log4J to have it wait for > > an Apache FileInstall exploded bundle to supply the Capability, but it > > didn't seem to take. If I get the time, I'll try to gather the work and > > submit a case. > > > > If anyone is familiar with the code, I'd appreciate a quick pointer to > the > > responsible class. I'd like to submit a patch along with the case. > > > > Thanks, > > Nick Baker > >
