servicemix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Moulliard (JIRA)" <>
Subject [jira] [Created] (SMX4-1637) ElasticSearch bundle 0.90.5 does not work as SPI is not supported
Date Mon, 23 Dec 2013 18:23:53 GMT
Charles Moulliard created SMX4-1637:

             Summary: ElasticSearch bundle 0.90.5 does not work as SPI is not supported
                 Key: SMX4-1637
             Project: ServiceMix 4
          Issue Type: Bug
            Reporter: Charles Moulliard

Existing bundle of SMX - ElasticSearch bundle 0.90.5 does not support SPI (Service Locator)
and in consequence classes cannot be retrieved :

Caused by: java.lang.IllegalArgumentException: A SPI class of type org.apache.lucene.codecs.PostingsFormat
with name 'Memory' does not exist. You need to add the corresponding JAR file supporting this
SPI to your classpath.The current classpath supports the following names: [XBloomFilter, es090,
completion090, Direct]
	at org.apache.lucene.util.NamedSPILoader.lookup([75:org.apache.servicemix.bundles.elasticsearch:]
	at org.apache.lucene.codecs.PostingsFormat.forName([75:org.apache.servicemix.bundles.elasticsearch:]
	at org.elasticsearch.index.codec.postingsformat.PostingFormats.<clinit>([75:org.apache.servicemix.bundles.elasticsearch:]
	... 15 more

That means that Require and Provide-Capibility must be added to the MANIFEST file generated

                            osgi.serviceloader; osgi.serviceloader=org.apache.lucene.codecs.Codec,
                            osgi.serviceloader; osgi.serviceloader=org.apache.lucene.codecs.PostingsFormat,
                            osgi.serviceloader; osgi.serviceloader=org.apache.lucene.codecs.DocValuesFormat
                            osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"

and that the files located under META-INF/Services must be merged.

Remark : As split-package does not work in this situation, the workaround has been to add
as resources files, the files resulting from the merge between classes of lucene-core and


This message was sent by Atlassian JIRA

View raw message