Re: Error while initializing EmbeddedSolrServer

2014-11-23 Thread Danesh Kuruppu
Thanks Mikhail/Michael I checked both lucene-core.jar and lucene-codecs.jar. org.apache.lucene.codecs.Codec is there in both files. Seems like problem is in osgi bundling. I need to consider the service loader in osgi bundle which is not done. Thanks for information. Danesh On Sun, Nov 23, 2014

Re: Error while initializing EmbeddedSolrServer

2014-11-23 Thread Michael Sokolov
Those Spi classes rely on a configuration file that gets stored in the META-INF folder. I'm not familiar with who OSGI works, but I'm pretty sure that failure is because the file META-INF/services/org.apache.lucene.codecs.Codec (you'll see it in the lucene-core jar) can't be found -Mike On

Re: Error while initializing EmbeddedSolrServer

2014-11-23 Thread Mikhail Khludnev
Hi, Did you tried to figure out which artefact contains org.apache.lucene.codecs.Codec? I guess it should be something like lucene-codec or so. Also, referring different versions 3.6.2 vs 4.7.2 vs 3.0.3 is dead-end. Happy OSGIing! On Sun, Nov 23, 2014 at 6:14 AM, Danesh Kuruppu wrote: > Hi all,

Error while initializing EmbeddedSolrServer

2014-11-22 Thread Danesh Kuruppu
Hi all, I am using solr version 4.7.2. I need to use EmbeddedSolrServer. I am getting following error while initializing the coreContainer Exception in thread "Thread-15" java.lang.NoClassDefFoundError: Could not > initialize class org.apache.lucene.codecs.Codec > at > org.apache.solr.core.So