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

后端 未结 5 1570
有刺的猬
有刺的猬 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条回答
  •  -上瘾入骨i
    2020-12-09 19:33

    I suspect you just need a leading slash to indicate that your directory name is absolute rather than relative:

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

    If that's not it, please post where your solrconfig.xml file lives.

    On a Windows machine, update the solr/home property in solr/web.xml along these lines:

    
        solr/home
        C:/solr
        java.lang.String
    
    

提交回复
热议问题