Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "SolrTomcat" page has been changed by rosie666: http://wiki.apache.org/solr/SolrTomcat?action=diff&rev1=58&rev2=59 ==== HTTP 500 error ==== If, when installing Solr 3.5, you get an HTTP 500 error and the exception message begins with + {{{ org.apache.solr.common.SolrException: Error loading class 'solr.VelocityResponseWriter' at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389)... }}} - the problem is caused by incorrect <lib> locations in ''$SOLR_HOME/conf/solrconfig.xml'' and can be fixed by reading through this note in the mailing list archive: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201112.mbox/%3c7fa7f0b0-935a-4d01-a389-db3b7eda0...@gmail.com%3E + the problem is caused by incorrect <lib> locations in ''$SOLR_HOME/conf/solrconfig.xml'' and can be fixed by reading through this note in the mailing list archive: [[http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201112.mbox/<7fa7f0b0-935a-4d01-a389-db3b7eda0...@gmail.com>|http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201112.mbox/%3c7fa7f0b0-935a-4d01-a389-db3b7eda0...@gmail.com%3E]] ==== 关于这个问题的补充说明 ==== - http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201112.mbox/%3c7fa7f0b0-935a-4d01-a389-db3b7eda0...@gmail.com%3E + . [[http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201112.mbox/<7fa7f0b0-935a-4d01-a389-db3b7eda0...@gmail.com>|http://mail-archives.apache.org/mod_mbox/lucene-solr-user/201112.mbox/%3c7fa7f0b0-935a-4d01-a389-db3b7eda0...@gmail.com%3E]] + - 中告诉我们,要在使用tomcat6.0时避免这个错误,要么注释 <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" enable="${solr.velocity.enabled:true}"/>,要么将${solr.velocity.enabled:true}"/修改为${solr.velocity.enabled:false}"/,要么就得将solrconfig.xml中的<lib dir="../../contrib/extraction/lib" /><lib dir="../../contrib/clustering/lib" />这些相对目录的地址调整为正确的(因为大多数情况下我们都是从example\solr下copy的solrconfig.xml,因此里面的目录位置肯定与实际位置不相符合),修改的时候一定要注意dir="../../contrib/extraction/lib"这个地址的相对位置是对于''$SOLR_HOME/conf/''来说的,而不是''$SOLR_HOME/conf/solrconfig.xml'' + 中告诉我们,要在使用tomcat6.0时避免这个错误,要么注释 <queryResponseWriter name="velocity" class="solr.VelocityResponseWriter" enable="${solr.velocity.enabled:true}"/>,要么将${solr.velocity.enabled:true}"/修改为${solr.velocity.enabled:false}"/,要么就得将solrconfig.xml中的<lib dir="../../contrib/extraction/lib" /><lib dir="../../contrib/clustering/lib" />这些相对目录的地址调整为正确的(因为大多数情况下我们都是从example\solr下copy的solrconfig.xml,因此里面的目录位置肯定与实际位置不相符合),修改的时候一定要注意dir="../../contrib/extraction/lib"这个地址的相对位置是对于''$SOLR_HOME/conf/''来说的,而不是''$SOLR_HOME/conf/solrconfig.xml'' - == Optional Configuration == === Logging === @@ -213, +214 @@ Indicate how to index in tomcat (rather than built-in jetty support via start.jar). To use the indexing examples in the Solr Tutorial, use the -Durl parameter, e.g. + {{{ java -jar -Durl=http://localhost:8080/solr/update post.jar solr.xml monitor.xml }}} - == External Resources == http://www.ibm.com/developerworks/java/library/j-solr1/