我想在Ubuntu Desktop 13.10上使用tomcat 8.0.3安装solr-4.6.1,但是无法启动Solr。
我已按照以下步骤操作:
JAVA_HOME = / usr / lib中/ JVM /默认-java的
来测试Tomcat安装
http://localhost:8080
它工作正常并显示Tomcat主页。
JAVA_OPTS = “ - Dsolr.solr.home =〜/桌面/ Solr的”
当我导航到
时http://localhost:8080/solr
浏览器显示以下错误
HTTP Status 500 - {msg=SolrCore 'collection1' is not available
due to init failure: Could not load config file
/home/handosa/~/Desktop/Solr/collection1/solrconfig.xml,
trace=org.apache.solr.common.SolrException: SolrCore 'collection1'
is not available due to init failure: Could not load config file
/home/handosa/~/Desktop/Solr/collection1/solrconfig.xml
at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:823)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:301)
at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:201)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:136)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:74)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1015)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:652)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1575)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1533)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.solr.common.SolrException: Could not load config file
/home/handosa/~/Desktop/Solr/collection1/solrconfig.xml at
org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:530)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:597)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:251)
at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:243)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262) ... 3 more
Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or
'/home/handosa/~/Desktop/Solr/collection1/conf'
at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:342)
at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:288)
at org.apache.solr.core.Config.<init>(Config.java:116) at org.apache.solr.core.Config.<init>(Config.java:86)
at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:139)
at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:527) ... 9 more ,code=500}
我错过了什么吗?
似乎整个问题都是使用路径〜/ Desktop / Solr。 所以,我使用/ home / handosa / Desktop / Solr,现在一切正常!