Thanks to Sandeep in this post:
http://lucene.472066.n3.nabble.com/HTTP-Status-503-Server-is-shutting-down-td4065958.html#a4078567
I was able to setup Tomcat 6 with Solr 431.

However, I need a multicore implementation and am now stuck on how to do so.
Here is what I did based on Sandeeps recommended steps so far and what I
need:

1. Extract solr431 package. In my case I did in "E:\solr-4.3.1\example\solr" 
        Peter's path: C:\Dropbox\Databases\solr-4.3.1\example\solr
2. Now copied solr dir from extracted package (E:\solr-4.3.1\example\solr)
into TOMCAT_HOME dir. In my case TOMCAT_HOME dir is pointed to
E:\Apache\Tomcat 6.0. 
3. I can refer now SOLR_HOME as " E:\Apache\Tomcat 6.0\solr"  (please
remember this) 
        Peter's path: C:\Program Files\Apache Software Foundation\Tomcat 
6.0\solr
4. Copy the solr.war file from extracted package to SOLR HOME dir i.e
E:\Apache\Tomcat 6.0\solr. This is required to create the context. As I
donot want to pass this as JAVA OPTS 
5. Create solr1.xml file into TOMCAT_HOME\conf\Catalina\localhost (I gave
file name as solr1.xml ) 

<?xml version="1.0" encoding="utf-8"?>
<Context docBase="C:\Program Files\Apache Software Foundation\Tomcat
6.0\solr\solr-4.3.1.war" debug="0" crossContext="true">  
        <Environment name="solr/home" type="java.lang.String" value="C:\Program
Files\Apache Software Foundation\Tomcat 6.0\solr" override="true"/>
</Context> 

6.  Also copy solr.war file into TOMCAT_HOME\webapps for deployment purpose 
7.  If you start tomcat you will get errors as mentioned by Shawn.  S0 you
need to copy all the 5 jar files from solr extracted package (
E:\solr-4.3.1\example\lib\ext ) to TOMCAT_HOME\lib dir.(jul-to-slf4j-1.6.6,
jcl-over-slf4j-1.6.6, slf4j-log4j12-1.6.6, slf4j-api-1.6.6,log4j-1.2.16) 
8. Also copy the log4js.properties file  from
E:\solr-4.3.1\example\resources dir to TOMCAT_HOME\lib dir. 
9. Now if you start the tomcat you wont having any problem. 

So far Sandeeps steps.

I can now approach http://localhost:8080/solr-4.3.1/#/ 

Now, what I will be requiring after I've completed the basic setup of
Tomcat6 and Solr431 I want to migrate my Solr350 (now running on Cygwin)
cores to that environment. 

C:\Dropbox\Databases\apache-solr-3.5.0\example\example-DIH\solr\tt 
C:\Dropbox\Databases\apache-solr-3.5.0\example\example-DIH\solr\shop 
C:\Dropbox\Databases\apache-solr-3.5.0\example\example-DIH\solr\homes 

Where do I need to copy the above cores for this all to work? To C:\Program
Files\Apache Software Foundation\Tomcat 6.0\solr? 
And how can I then approach the data-import handler? I now do this like so: 
http://localhost:8983/solr/tt/dataimport?command=full-import


Thanks!




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Configuring-Tomcat-6-with-Solr431-with-multiple-cores-tp4078778.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to