localhost:8080 / solr / browse给出了延迟加载错误

时间:2012-08-16 23:06:25

标签: apache tomcat solr lucene

我是Solr的新手,刚刚在CentOS上安装了Tomcat6和Solr 3.6.1。我设法从我的MySQL表中添加了一些数据,并使用带有http://localhost:8080/solr/update的exampledoc&#xml来用索引填充样本数据。我使用solrconfig.xml

中经过编辑的examplesdoc版本

问题:当我转到http://localhost:8080/solr/browse的浏览界面时,我在日志文件中收到以下错误。我不明白为什么会出现错误,有什么想法可以解决这个问题吗?

错误:

Aug 16, 2012 11:01:56 PM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/browse params={} hits=254 status=0 QTime=4 
Aug 16, 2012 11:01:56 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: lazy loading error
    at org.apache.solr.core.SolrCore$LazyQueryResponseWriterWrapper.getWrappedWriter(SolrCore.java:1763)
    at org.apache.solr.core.SolrCore$LazyQueryResponseWriterWrapper.getContentType(SolrCore.java:1778)
    at org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:338)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:273)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:679)
Caused by: org.apache.solr.common.SolrException: Error loading class 'sol

在我的 solrconfig.xml 中,我有/browse请求处理程序:

<requestHandler name="/browse" class="solr.SearchHandler">
 <lst name="defaults">
   <str name="echoParams">explicit</str>

   <!-- VelocityResponseWriter settings -->
   <str name="wt">velocity</str>

   <str name="v.template">browse</str>
   <str name="v.layout">layout</str>
   <str name="title">Solritas</str>

   <str name="df">text</str>
   <str name="defType">edismax</str>
   <str name="q.alt">*:*</str>
   <str name="rows">10</str>
   <str name="fl">*,score</str>
   <str name="mlt.qf">
     text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
   </str>
   <str name="mlt.fl">text,features,name,sku,id,manu,cat</str>
   <int name="mlt.count">3</int>

   <str name="qf">
      text^0.5 features^1.0 name^1.2 sku^1.5 id^10.0 manu^1.1 cat^1.4
   </str>

   <str name="facet">on</str>
   <str name="facet.field">cat</str>
   <str name="facet.field">manu_exact</str>
   <str name="facet.query">ipod</str>
   <str name="facet.query">GB</str>
   <str name="facet.mincount">1</str>
   <str name="facet.pivot">cat,inStock</str>
   <str name="facet.range.other">after</str>
   <str name="facet.range">price</str>
   <int name="f.price.facet.range.start">0</int>
   <int name="f.price.facet.range.end">600</int>
   <int name="f.price.facet.range.gap">50</int>
   <str name="facet.range">popularity</str>
   <int name="f.popularity.facet.range.start">0</int>
   <int name="f.popularity.facet.range.end">10</int>
   <int name="f.popularity.facet.range.gap">3</int>
   <str name="facet.range">manufacturedate_dt</str>
   <str name="f.manufacturedate_dt.facet.range.start">NOW/YEAR-10YEARS</str>
   <str name="f.manufacturedate_dt.facet.range.end">NOW</str>
   <str name="f.manufacturedate_dt.facet.range.gap">+1YEAR</str>
   <str name="f.manufacturedate_dt.facet.range.other">before</str>
   <str name="f.manufacturedate_dt.facet.range.other">after</str>


   <!-- Highlighting defaults -->
   <str name="hl">on</str>
   <str name="hl.fl">text features name</str>
   <str name="f.name.hl.fragsize">0</str>
   <str name="f.name.hl.alternateField">name</str>
 </lst>
 <arr name="last-components">
   <str>spellcheck</str>
 </arr>
 <!--
 <str name="url-scheme">httpx</str>
 -->
</requestHandler>

1 个答案:

答案 0 :(得分:3)

这对我来说就像是缺少图书馆。

查看http://wiki.apache.org/solr/VelocityResponseWriter#Using_the_VelocityResponseWriter_in_Solr_Core,看看您的所有图书馆都在正确的位置。