lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean Zambrano (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-5891) Problems installing Apache Solr with Apache Tomcat
Date Thu, 20 Mar 2014 15:46:43 GMT
Dean Zambrano created SOLR-5891:
-----------------------------------

             Summary: 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
             Fix For: 4.7


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


Mime
View raw message