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

后端 未结 5 1572
有刺的猬
有刺的猬 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:38

    for solving this you have to add 1. Download the Solr package form the following path http://www.trieuvan.com/apache//lucene/solr/3.1.0/apache-solr-3.1.0.zip

    1. Extract it and copy the file 'dist/apache-solr-3.1.0.war' to Tomcat's webapps folder as solr.war

    2. Make a folder c:/solr (Which will be our Solr home and all the index will live here) and copy the folder contents of 'examples/solr/' from extracted files to this location

    3. Edit the file catalina.bat and apply the following patch (you can also do it manually, just adding a line)

      @@ -84,7 +84,8 @@ rem $Id: catalina.bat 1040546 2010-11-30 14:47:34Z markt $ rem ---------------------------------------------------------------------------

      - +rem Adding solr home path +set JAVA_OPTS=%JAVA_OPTS% -Dsolr.solr.home=c:/solr

    and install tomcat windows service(which is in tomcat/bin) Try this....

提交回复
热议问题