How to fix java RuntimeException: Can't find resource 'solrconfig.xml'?

后端 未结 5 1582
有刺的猬
有刺的猬 2020-12-09 18:46

I used Ubuntu 8.10 as the Solr server OS, and set:

solr.solr.home=home/huenzhao/search/tomcat6/bin/solr.

When I run the tomcat(The tomcat a

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-09 19:35

    I was running into the same problem both on a windows machine at home and on a hosted VPS linux machine. The solution turned out to be I didn't actually have a directory conf in webapps/solr and this not correct path to solrconfig.xml

    The path is to be configured in solr.xml which should reside either inside your-tomcat/conf/Catalina/localhost/

    or on the class path.

提交回复
热议问题