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 windywolf: http://wiki.apache.org/solr/SolrTomcat?action=diff&rev1=55&rev2=56 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 + + ==== 关于这个问题的补充说明 ==== + 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'' + == Optional Configuration == === Logging ===