You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2012/08/27 10:46:28 UTC
[Solr Wiki] Update of "SolrTomcat" by WangQun
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 WangQun:
http://wiki.apache.org/solr/SolrTomcat?action=diff&rev1=60&rev2=61
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 [[Solr3.5|The Solr 3.5 Post-Release Notes]].
-
- ==== 关于这个问题的补充说明 ====
-
- Please note [[Solr3.5|the Solr 3.5 Post-Release Notes]].
-
- 中告诉我们,要在使用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 ===