On 6/20/2014 8:03 AM, Ahmet Arslan wrote: > * download solr-4.9.0.tgz > * add icu4j-53.1.jar and solr-analysis-extras-4.9.0.jar and > lucene-analyzers-icu-4.9.0.jar to solr-4.9.0/example/solr/collection1/lib/ > > * confirm they are loaded > > INFO org.apache.solr.core.SolrResourceLoader – Adding > 'file:/Volumes/datadisk/Desktop/solr-4.9.0/example/solr/collection1/lib/icu4j-53.1.jar' > to class loader > > INFO org.apache.solr.core.SolrResourceLoader – Adding > 'file:/Volumes/datadisk/Desktop/solr-4.9.0/example/solr/collection1/lib/lucene-analyzers-icu-4.9.0.jar' > to classloader > > INFO org.apache.solr.core.SolrResourceLoader – Adding > 'file:/Volumes/datadisk/Desktop/solr-4.9.0/example/solr/collection1/lib/solr-analysis-extras-4.9.0.jar' > to class loader > > icu4j-53.1.jar loaded twice > > INFO org.apache.solr.core.SolrResourceLoader – Adding > 'file:/Volumes/datadisk/Desktop/solr-4.9.0/contrib/extraction/lib/icu4j-53.1.jar' > to classloader > > > * add <filter class="solr.ICUFoldingFilterFactory"/> to example schema.xml > > * java -jar start.jar yields the exception reported in SOLR-6188 > > > When <filter class="org.apache.lucene.analysis.icu.ICUFoldingFilterFactory"/> > is used everything works fine.
One issue that can cause jars to get loaded twice is this: https://issues.apache.org/jira/browse/SOLR-4852 This doesn't look like that specific issue, though. I'm wondering why you copied the jars, since the example config already has a <lib> line that loads them directly from the contrib directory. I think it's getting loaded twice because you copied it into the core-specific lib directory and there's probably another <lib> config element that loads everything in that directory, in addition to the one that loads it directly from contrib. My experience with SOLR-4852 combined with this problem report makes me think that it's the fact that it gets loaded twice that causes it to fail. Using the fully-qualified class name is not something that I would have thought of as a workaround to SOLR-4852. Thanks, Shawn --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
