I know next to nothing about Felix OBR and the index file. However, I do notice that you are using "version" rather than "bundle-version" for the co.diderot.staticresources bundle. If this means OBR is defaulting that bundle to version 0.0.0, that would explain why the content cannot be found.
On Mon, Oct 5, 2015 at 7:42 AM, Paul F Fraser <[email protected]> wrote: > Thanks, John & David, > > On 5/10/2015 10:58 PM, John Ross wrote: >> >> In the meantime, you could try packaging that bundle as part of >> the subsystem archive, which should lead to the use of other >> requirement classes that do override toString, for the purposes of >> identifying the issue. >> > I will check this out. > > Does this excerpt from the repo index.xml give any clue? > > <resource> > <capability namespace="osgi.identity"> > <attribute name="osgi.identity" value="co.diderot.staticresources"/> > <attribute name="type" value="osgi.bundle"/> > <attribute name="version" type="Version" value="0.0.3.201510050448"/> > </capability> > <capability namespace="osgi.content"> > <attribute name="osgi.content" > value="351db26a839939b414c59a2a1bc2aeeeebe1a060ab7c9a69f4a0a7036ed846cd"/> > <attribute name="url" value="co.diderot.staticresources-0.0.3.jar"/> > <attribute name="size" type="Long" value="7481"/> > <attribute name="mime" value="application/vnd.osgi.bundle"/> > </capability> > <capability namespace="osgi.wiring.bundle"> > <attribute name="osgi.wiring.bundle" > value="co.diderot.staticresources"/> > <attribute name="bundle-version" type="Version" > value="0.0.3.201510050448"/> > </capability> > <capability namespace="osgi.wiring.host"> > <attribute name="osgi.wiring.host" > value="co.diderot.staticresources"/> > <attribute name="bundle-version" type="Version" > value="0.0.3.201510050448"/> > </capability> > <capability namespace="osgi.wiring.package"> > <attribute name="osgi.wiring.package" > value="co.diderot.staticresources"/> > <attribute name="version" type="Version" value="0.0.1"/> > <attribute name="bundle-symbolic-name" > value="co.diderot.staticresources"/> > <attribute name="bundle-version" type="Version" > value="0.0.3.201510050448"/> > <directive name="uses" > value="javax.servlet.http,org.osgi.framework,org.osgi.service.component,org.osgi.service.http"/> > </capability> > <capability namespace="osgi.service"> > <attribute name="objectClass" type="List<String>" > value="co.diderot.staticresources.StaticResources"/> > <directive name="uses" value="co.diderot.staticresources"/> > </capability> > <requirement namespace="osgi.wiring.package"> > <directive name="filter" > value="(&(osgi.wiring.package=co.diderot.logging)(version>=0.0.0)(!(version>=1.0.0)))"/> > </requirement> > <requirement namespace="osgi.wiring.package"> > <directive name="filter" > value="(&(osgi.wiring.package=javax.servlet.http)(version>=3.0.0)(!(version>=4.0.0)))"/> > </requirement> > <requirement namespace="osgi.wiring.package"> > <directive name="filter" > value="(&(osgi.wiring.package=org.osgi.framework)(version>=1.8.0)(!(version>=2.0.0)))"/> > </requirement> > <requirement namespace="osgi.wiring.package"> > <directive name="filter" > value="(&(osgi.wiring.package=org.osgi.service.component)(version>=1.2.0)(!(version>=2.0.0)))"/> > </requirement> > <requirement namespace="osgi.wiring.package"> > <directive name="filter" > value="(&(osgi.wiring.package=org.osgi.service.http)(version>=1.2.0)(!(version>=2.0.0)))"/> > </requirement> > <requirement namespace="osgi.extender"> > <directive name="filter" > value="(&(osgi.extender=osgi.service.component)(version>=1.2.0)(!(version>=2.0.0)))"/> > </requirement> > <requirement namespace="osgi.ee"> > <directive name="filter" > value="(&(osgi.ee=JavaSE)(version=1.8))"/> > </requirement> > <requirement namespace="osgi.service"> > <directive name="filter" > value="(objectClass=org.osgi.service.http.HttpService)"/> > <directive name="effective" value="active"/> > </requirement> > <requirement namespace="osgi.extender"> > <directive name="filter" > value="(&(osgi.extender=osgi.ds)(version>=1.1.0)(!(version>=2.0.0)))"/> > <directive name="effective" value="active"/> > </requirement> > </resource> > > > The felix jetty http bundle covers the javax and http service requirement. > > Paul
