无法访问码头上的/ solr

时间:2012-12-28 11:09:50

标签: database solr jetty

我正在尝试按照solr 1.4中的模式运行solr到solr 3.5,当我将核心和模式添加到3.5时:发现“500”错误

HTTP ERROR 500

Problem accessing /solr/. Reason:

    Severe errors in solr configuration.

Check your log files for more detailed information on what may be wrong.

If you want solr to continue after configuration errors, change: 

 <abortOnConfigurationError>false</abortOnConfigurationError>

in solr.xml

-------------------------------------------------------------
org.apache.solr.common.SolrException: No system property or default value specified for solr.solr.home
    at org.apache.solr.common.util.DOMUtil.substituteProperty(DOMUtil.java:331)
    at org.apache.solr.common.util.DOMUtil.substituteProperties(DOMUtil.java:284)
    at org.apache.solr.common.util.DOMUtil.substituteProperties(DOMUtil.java:292)
    at org.apache.solr.common.util.DOMUtil.substituteProperties(DOMUtil.java:292)
    at org.apache.solr.core.Config.<init>(Config.java:165)
    at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:132)
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:430)
    at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316)
    at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207)
    at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130)
    at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
    at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
    at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
    at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
    at org.mortbay.jetty.Server.doStart(Server.java:224)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.mortbay.start.Main.invokeMain(Main.java:194)
    at org.mortbay.start.Main.start(Main.java:534)
    at org.mortbay.start.Main.start(Main.java:441)
    at org.mortbay.start.Main.main(Main.java:119)

我的核心配置如下:

  <cores adminPath="/admin/cores">
    <core name="geoplanet" instanceDir="solr-geoplanet"/>
<property name="dataDir" value="solr-geoplanet/data" />

从solr1.5迁移到solr3.1需要进行额外的配置更改吗?

2 个答案:

答案 0 :(得分:2)

您需要做的就是对https://issues.apache.org/jira/browse/SOLR-1007

中提供的属性值进行硬编码

答案 1 :(得分:1)

例外 -

根据例外情况,Solr无法获得solr.solr.home的价值。因此,在启动Solr传递JVM参数时,例如:-Dsolr.solr.home=/usr/solr/home

Solr 1.5至3.1 -

迁移时,您需要在solrconfig.xml <luceneMatchVersion>LUCENE_31</luceneMatchVersion>

中添加以下配置