You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Ryan Moquin <fr...@gmail.com> on 2013/05/12 04:45:24 UTC
Really confused regarding loading SPI resources
Besides the fact that I'm a little confused regarding blueprint being in
the osgi enterprise 5.0.0 spec (which I thought was in the compendium
spec), I have a need to be able to load SPIs from several 3rd party
bundles. I was trying the SPIFly way with Aries, and it appears that the
services are recognized (or it says they are) in the log, but I don't see
them listed as services.
When I try the "OSGi Enterprise" spec way, I got an error resolving
the osgi.serviceloader.registrar class. I feel like I'm missing something
somewhere. BTW, I was trying to wrap the lucene jars, which I can do, but
I can't see to get the META-INF/services entries to be handled
correctly......Do I need to switch the to the enterprise karaf? It would
be fine to switch to it, I guess I'm just confused because if blueprint is
part of enterprise 5.0, wouldn't that be in the regular Karaf distribution?
Or am I just making too many incorrect assumptions?
Thanks for any help! I know I'm doing something wrong, just can't quite
figure out right.
Ryan
Re: Really confused regarding loading SPI resources
Posted by rkmoquin <fr...@gmail.com>.
Right, I'm running it on Karaf 3.0.0-SNAPSHOT (despite my weird problems with
certain keys not doing what they are expected), so I should be fine there.
I looked at the alreadt wrapped lucene bundles and while the version I need
is there, I've noticed previously that the conponents I need are mostly all
wrapped. The problem, is that it doesn't look like there are any OSGi
instruction in those bundles either which register the services under
META-INF/services into the registry. Otherwise, other bundles can't access
it. That's the same place I'm at right now.
It's strange, the "full" version of karaf 3.0.0 is 3 meg small than what
appears to be the normal distribution. I looked at the features files for
some of the 3.0.0-SNAPSHOT to see if the aries spifly library was included,
but all I saw were a lot of references to the 0.3 version of Aries which was
confusing. I'm guess I was looking at old stuff somehow.
Anyhow, I'm thinking maybe I need to deploy aries spi fly myself to get it
to work. Right now it looks like some geronimo SPI classes class them, but
I don't think does anything with them.
Thanks,
Ryan
--
View this message in context: http://karaf.922171.n3.nabble.com/Really-confused-regarding-loading-SPI-resources-tp4028643p4028652.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Really confused regarding loading SPI resources
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
Your right blueprint used to be in the compendium spec for 4.3, though I
haven't read the latest 5.0. Might've changed. For using SPIFly you need
blueprint 1.0.0 at least. Therefore you need to use Karaf 2.3.x or
3.0.0.RC1. Afaik it's not in the enterprise feature yet. Regarding Lucene,
did you look at servicemix for it. Might be that it's already transformed.
Regards, Achim
sent from mobile device
Am 12.05.2013 04:45 schrieb "Ryan Moquin" <fr...@gmail.com>:
> Besides the fact that I'm a little confused regarding blueprint being in
> the osgi enterprise 5.0.0 spec (which I thought was in the compendium
> spec), I have a need to be able to load SPIs from several 3rd party
> bundles. I was trying the SPIFly way with Aries, and it appears that the
> services are recognized (or it says they are) in the log, but I don't see
> them listed as services.
>
> When I try the "OSGi Enterprise" spec way, I got an error resolving
> the osgi.serviceloader.registrar class. I feel like I'm missing something
> somewhere. BTW, I was trying to wrap the lucene jars, which I can do, but
> I can't see to get the META-INF/services entries to be handled
> correctly......Do I need to switch the to the enterprise karaf? It would
> be fine to switch to it, I guess I'm just confused because if blueprint is
> part of enterprise 5.0, wouldn't that be in the regular Karaf distribution?
> Or am I just making too many incorrect assumptions?
>
> Thanks for any help! I know I'm doing something wrong, just can't quite
> figure out right.
>
> Ryan
>