Omar Jaafor Omar Jaafor - 27 days ago 18
Java Question

solr.extraction.ExtractingRequestHandler ClassNotFoundException

I am working on an internal project in my company that requires solr, but I could not manage to link it to Tika. I bought the apache solr 4 cookbook yet I couldn't figure out the solution.


  1. I copied the required jar files into a lib directory

  2. I added the lib directory in solrconfig.xml



when I remove
start="lazy"
in
requesthandler="update/extract"
I get the following error:

org.apache.solr.common.SolrException: RequestHandler init failure
...
...
Caused by: org.apache.solr.common.SolrException: RequestHandler init failure
...
...
Caused by: org.apache.solr.common.SolrException: Error loading class 'solr.extraction.ExtractingRequestHandler'
...
...
Caused by: java.lang.ClassNotFoundException: solr.extraction.ExtractingRequestHandler

Answer

I managed to make it work after replacing ../../dist and ../../contrib with their absolute paths. It is very wierd as I am sure I placed these files where they should be.

Thank you very much Jayendra for your replies.

Comments