When I added this configuration in solrconfig.xml :
<requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler">
<lst name="defaults">
<str name="config">data-config.xml</str>
</lst>
</requestHandler>
then started tomcat, I got this exception :
ClassNotFoundException: org.apache.solr.util.plugin.SolrCoreAware
I checked the dir
<lib dir="../../dist/" regex="apache-solr-dataimporthandler-\d.*\.jar" />
jar imported, what's wrong with it? what's the lib node dir attribute mean ?
Converting OP's comment into an answer as (a) it's easier to spot and (b) worked for me:
Take care not to place solr-dataimporthandler-x.y.z.jar
into
Tomcat\lib <- Doesn't work!
Instead make sure it's placed in:
Tomcat\webapps\solr\WEB-INF\lib <- Works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With