org.apache.solr.common.SolrException: Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler

前端 未结 4 580
遇见更好的自我
遇见更好的自我 2021-01-02 02:50

I am new for solr. I have installed apache tomcat 7.0 on my server and I have solr 3.6.1 on server.

I have solr-home folder set by network guys on my D:\\ drive. Th

相关标签:
4条回答
  • 2021-01-02 03:15

    Had similar problem, my issue was with symlinks (solr didn't follow them).

    0 讨论(0)
  • 2021-01-02 03:24

    you have to edit solrconfig.xml and add the path to the library as well, e.g.:

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

    ..if you still have it in that directory. In the example solrconfigs I found they put it right underneath

    <luceneMatchVersion>LUCENE_40</luceneMatchVersion>
    
    0 讨论(0)
  • 2021-01-02 03:27

    The problem with solr-5.2.0 version. when i switched to solr-5.5.0, The issue has been resolved.

    0 讨论(0)
  • 2021-01-02 03:29

    In solr-4.3.0 while trying to implement: http://wiki.apache.org/solr/DIHQuickStart adding:

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

    in the file: PROJECT-HOME\solr\collection1\ conf\solrconfig.xml

    under the existing lines:

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

    solved the problem. maybe you need to restart the servlet container (in default case: Jetty).

    0 讨论(0)
提交回复
热议问题