Exception: Cannot find SolrCoreAware class

When I added this configuration to the solrconfig.xml file:

<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"> <lst name="defaults"> <str name="config">data-config.xml</str> </lst> </requestHandler> 

and then tomcat started, I got this exception:

 ClassNotFoundException: org.apache.solr.util.plugin.SolrCoreAware 

I checked the directory

 <lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" /> 

jar is imported, what's wrong with it? What does the dir lib node attribute mean?

+6
source share
1 answer

Converting an OP comment into an answer: (a) it is easier to identify and (b) worked for me:

Do not put solr-dataimporthandler-xyzjar in

 Tomcat\lib <- Doesn't work! 

Instead, make sure it is placed in:

 Tomcat\webapps\solr\WEB-INF\lib <- Works. 
+4
source

Source: https://habr.com/ru/post/922166/


All Articles