Hello all,
I have an issue in migrating my core from solr 8.11 to 9.4.
I readed the changes
https://github.com/apache/solr/blob/main/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc
And basically did the following:
* solrconfig.xml: removed <lib> tags pointing to a wrong path, changed
FastLRUCache to CaffeineCache, changed luceneversion to 9.8.0
* schema.xml: replaced <tokenizer> class attribute to name attribute
whenever possible, the same for <filter>
I don't see any other changes I need to make,
still when I try to load my core I see in solr log
2023-12-28 11:03:24.875 INFO (coreLoadExecutor-11-thread-1) [
x:COSBIBioIndexTest] o.a.s.s.IndexSchema Schema name=ncbi
2023-12-28 11:03:24.893 ERROR (coreContainerWorkExecutor-2-thread-1) []
o.a.s.c.CoreContainer Error waiting for SolrCore to be loaded on startup =>
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError:
org/apache/lucene/analysis/util/TokenizerFactory
at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError:
org/apache/lucene/analysis/util/TokenizerFactory
at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:?]
at java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[?:?]
at
org.apache.solr.core.CoreContainer.lambda$loadInternal$13(CoreContainer.java:1072)
~[?:?]
at
com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:212)
~[metrics-core-4.2.20.jar:4.2.20]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) ~[?:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
at
org.apache.solr.common.util.ExecutorUtil$MDCAwareThreadPoolExecutor.lambda$execute$0(ExecutorUtil.java:294)
~[?:?]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
~[?:?]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
~[?:?]
at java.lang.Thread.run(Thread.java:829) [?:?]
Caused by: java.lang.NoClassDefFoundError:
org/apache/lucene/analysis/util/TokenizerFactory
It looks like it can't find a very basic class, should I add something in <lib>
?
I tried to create a new core, that starts correctly without any <lib> entry in
solrconfig.xml
Thank you for your help!
D
[cid:598ac80e-a784-424d-8091-5389ce63f3c6]<https://www.cosbi.eu/>
Danilo Tomasoni
Data Scientist & Software Engineer
+39 0464 808845
[email protected]<mailto:[email protected]>
www.cosbi.eu<http://www.cosbi.eu/>
[cid:e50d41b3-d5af-4617-8df7-0a923d5117da]<https://twitter.com/FoundationCosbi/>[cid:11bc7894-0a70-4228-822f-27812269a75e]<https://www.linkedin.com/company/cosbi/>