You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Tomás Fernández Löbbe (JIRA)" <ji...@apache.org> on 2014/03/20 19:46:46 UTC
[jira] [Resolved] (SOLR-5891) Problems installing Apache Solr with
Apache Tomcat
[ https://issues.apache.org/jira/browse/SOLR-5891?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomás Fernández Löbbe resolved SOLR-5891.
-----------------------------------------
Resolution: Invalid
Looks like a configuration issue. You are trying to set the solr home to /opt/solr but apparently Solr is reading from /root/solr-4.7.0/example/solr (maybe you set that somewhere else?).
Anyway, you should raise this question int the users list: https://lucene.apache.org/solr/discussion.html
> Problems installing Apache Solr with Apache Tomcat
> --------------------------------------------------
>
> Key: SOLR-5891
> URL: https://issues.apache.org/jira/browse/SOLR-5891
> Project: Solr
> Issue Type: Bug
> Components: clients - java, SolrCloud
> Affects Versions: 4.7
> Environment: Centos 6.5 Installing Apache Tomcat 7.0.52 with Apache Solr 4.7.0
> Reporter: Dean Zambrano
> Labels: build, newbie
> Fix For: 4.7
>
> Original Estimate: 26h
> Remaining Estimate: 26h
>
> I installed Apache Solr, version 4.7.0. As part of the install, I performed the following:
> (Based on these instructions: http://sachkadam.wordpress.com/2013/04/29/solr-installation-on-centos-6/) -> The summary is as follows:
> - I moved the "/example/solr" directory to /opt/solr.
> - I created a "solr.xml" file with contains the following xml code:
> # more solr.xml
> <?xml version=”1.0″ encoding=”utf-8″?>
> <Context docBase=”/opt/solr/solr-4.7.0.war” debug=”0″ crossContext=”true”>
> <Environment name=”solr/home” type=”java.lang.String” value=”/opt/solr” override=”true”/>
> </Context>
> The "solr.xml" file is located in: /usr/share/apache-tomcat-7.0.52/conf/Catalina/localhost
> **When I try to access solr through the following URL: http://107.170.94.202:8983, I receive the following error:
> {msg=SolrCore 'collection1' is not available due to init failure: Could not load config file /root/solr-4.7.0/example/solr/collection1/solrconfig.xml,trace=org.apache.solr.common.SolrException: SolrCore 'collection1' is not available due to init failure: Could not load config file /root/solr-4.7.0/example/solr/collection1/solrconfig.xml
> at org.apache.solr.core.CoreContainer.getCore(CoreContainer.java:827)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:317)
> at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:217)
> at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
> at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> at org.eclipse.jetty.server.Server.handle(Server.java:368)
> at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> at org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
> at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
> at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
> at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
> at org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
> at org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
> at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> at java.lang.Thread.run(Thread.java:744)
> Caused by: org.apache.solr.common.SolrException: Could not load config file /root/solr-4.7.0/example/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:258)
> at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:250)
> 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)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> ... 1 more
> Caused by: java.io.IOException: Can't find resource 'solrconfig.xml' in classpath or '/root/solr-4.7.0/example/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:140)
> at org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:527)
> ... 9 more
> ,code=500}
> I also tried checking if Apache Solr was running through the following URL:
> http://107.170.94.202:8080/solr
> But I receive the following error message:
> ---
> HTTP Status 404 - /solr
> type Status report
> message /solr
> description The requested resource is not available.
> Apache Tomcat/7.0.52
> ---
> If you could share your expertise and let me know how I may resolve this issue it is greatly appreciated. Looking forward to your response.
> Many thanks,
> Dean
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org