I think the service dependency to a service published by the same blueprint container will work if that dependency is marked optional. Basically the problem is that Blueprint will not initialize its component if the mandatory dependencies aren't available. If you make that dependency optional you should get injected with the service dependency from your own bundle...
On 12 February 2015 at 20:12, Achim Nierbeck <bcanh...@googlemail.com> wrote: > Hi, > > if you try to reference a service which you published through the same > blueprint, this will fail. > You should use the bean instead then. > > regards, Achim > > > 2015-02-12 20:06 GMT+01:00 Benjamin Debeerst > <benjamin.debee...@younicos.com>: >> >> Hi Scott, >> >> >> >> I find that kind of diagnosis from Blueprint quite confusing as well, >> because Blueprint tends to mix up dependencies on the bundle layer and >> dependencies on the service layer. >> >> >> >> The bundle is resolved and started, but the blueprint container/component >> is missing service dependencies, in particular it cannot find a service with >> the given interface in the OSGi service registry. This is why it cannot >> start the blueprint component/container and is in the grace period state. >> >> >> >> Do you have some component exposing the interface in question as a service >> in the OSGi service registry? >> >> >> >> Regards, >> >> Benjamin >> >> >> >> From: Leschke, Scott [mailto:slesc...@medline.com] >> Sent: Donnerstag, 12. Februar 2015 19:14 >> To: user@karaf.apache.org >> Subject: Blueprint GracePeriod issue >> >> >> >> I have a bundle going into GracePeriod state. The bundle:diag command >> says Missing Dependencies and gives me the name of an interface that exists >> in the bundle itself. Is this indicative of a particular type of condition? >> I find it odd that it’s complaining about not finding an interface that >> exists locally. > > > > > -- > > Apache Member > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & > Project Lead > blog <http://notizblog.nierbeck.de/> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> > > Software Architect / Project Manager / Scrum Master >