Hello,

I am able to configure solr 4.3.1 version with tomcat6.

I followed these steps:
1. Extract solr431 package. In my case I did in
"E:\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)
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="E:\Apache\Tomcat 6.0\solr\solr.war" debug="0"
crossContext="true">  <Environment name="solr/home"
type="java.lang.String" value="E:\Apache\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.

10. As in my side I am using additional jar for data import requesthandler
.  So for this please modify the solrconfig.xml file to point the location
of data import jar.
11. What I did :
In solrconfig.xml file :  In section
 <!-- <lib/> directives can be used to instruct Solr to load an
Jars.........
                  <lib dir="./lib" />
    -->

I add one line after this section (If I use above line then I need to
create lib dir inside Collection1 dir)
<lib dir="../lib" />

12. In SOLR_HOME (E:\Apache\Tomcat 6.0\solr) I created a lib folder because
in my solrconfig.xml file I am referring this lib dir.
And copied all the dataimport related jar
files.(solr-dataimporthandler-4.3.1***)
I did it in this way because I do not want to use TOMCAT_HOME\lib.
13.  Now restart the tomcat I am sure there should not be any problem. If
there is some problem, refer solr.log file which is in TOMCAT_HOME\logs dir.

As I said in point 12 that I do not want to put jar files related to solr
ino TOMCAT_HOME\lib dir,  but for logging mechanism I have to do. I tried
to put all the 5 jars into this folder and removed from TOMCAT lib.. but
then I got the error.

In Ideal scenario, we should not put all the jar files related to solr into
TOMCAT lib dir

Regards
Sandeep



On Mon, Jul 15, 2013 at 12:27 AM, PeterKerk <vettepa...@hotmail.com> wrote:

> Ok, still getting the same error "HTTP Status 503 - Server is shutting
> down",
> so here's what I did now:
>
> - reinstalled tomcat
> - deployed solr-4.3.1.war in C:\Program Files\Apache Software
> Foundation\Tomcat 6.0\webapps
> - copied log4j-1.2.16.jar,slf4j-api-1.6.6.jar,slf4j-log4j12-1.6.6.jar to
> C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\solr-4.3.1\WEB-INF\lib
> - copied log4j.properties from
> C:\Dropbox\Databases\solr-4.3.1\example\resources to
> C:\Dropbox\Databases\solr-4.3.1\example\lib
> - restarted tomcat
>
>
> Now this shows in my Tomcat console:
>
> 14-jul-2013 20:54:38 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performanc
> e in production environments was not found on the java.library.path:
> C:\Program
> Files\Apache Software Foundation\Tomcat
> 6.0\bin;C:\Windows\Sun\Java\bin;C:\Windo
> ws\system32;C:\Windows;C:\Program Files\Common Files\Microsoft
> Shared\Windows Li
> ve;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows
> Live;C:\Windows\
>
> system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShe
> ll\v1.0\;C:\Program Files\TortoiseSVN\bin;c:\msxsl;C:\Program Files
> (x86)\Window
> s Live\Shared;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program
> File
> s (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files
> (x86)\Windows
>  Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL
> Server\110
> \Tools\Binn\;C:\Program Files (x86)\Microsoft SQL
> Server\110\Tools\Binn\;C:\Prog
> ram Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files
> (x86)\Microsoft SQ
> L Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft
> SQL S
> erver\110\DTS\Binn\;C:\Program Files (x86)\Java\jre6\bin;C:\Program
> Files\Java\j
> re631\bin;.
> 14-jul-2013 20:54:39 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 14-jul-2013 20:54:39 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 287 ms
> 14-jul-2013 20:54:39 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 14-jul-2013 20:54:39 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.37
> 14-jul-2013 20:54:39 org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor manager.xml
> 14-jul-2013 20:54:39 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive solr-4.3.1.war
> log4j:WARN No appenders could be found for logger
> (org.apache.solr.servlet.SolrD
> ispatchFilter).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
> more in
> fo.
> 14-jul-2013 20:54:39 org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory ROOT
> 14-jul-2013 20:54:39 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 14-jul-2013 20:54:39 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 14-jul-2013 20:54:39 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/55  config=null
> 14-jul-2013 20:54:39 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 732 ms
>
> And this in the catalina.log:
>
> 14-jul-2013 20:54:38 org.apache.catalina.core.AprLifecycleListener init
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path: C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program
> Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files
> (x86)\Common Files\Microsoft Shared\Windows
>
> Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program
> Files\TortoiseSVN\bin;c:\msxsl;C:\Program Files (x86)\Windows
> Live\Shared;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program
> Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files
> (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program
> Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft
> SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL
> Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL
> Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft
> SQL
> Server\110\DTS\Binn\;C:\Program Files (x86)\Java\jre6\bin;C:\Program
> Files\Java\jre631\bin;.
> 14-jul-2013 20:54:39 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on http-8080
> 14-jul-2013 20:54:39 org.apache.catalina.startup.Catalina load
> INFO: Initialization processed in 287 ms
> 14-jul-2013 20:54:39 org.apache.catalina.core.StandardService start
> INFO: Starting service Catalina
> 14-jul-2013 20:54:39 org.apache.catalina.core.StandardEngine start
> INFO: Starting Servlet Engine: Apache Tomcat/6.0.37
> 14-jul-2013 20:54:39 org.apache.catalina.startup.HostConfig
> deployDescriptor
> INFO: Deploying configuration descriptor manager.xml
> 14-jul-2013 20:54:39 org.apache.catalina.startup.HostConfig deployWAR
> INFO: Deploying web application archive solr-4.3.1.war
> 14-jul-2013 20:54:39 org.apache.catalina.startup.HostConfig deployDirectory
> INFO: Deploying web application directory ROOT
> 14-jul-2013 20:54:39 org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> 14-jul-2013 20:54:39 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> 14-jul-2013 20:54:39 org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/55  config=null
> 14-jul-2013 20:54:39 org.apache.catalina.startup.Catalina start
> INFO: Server startup in 732 ms
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/HTTP-Status-503-Server-is-shutting-down-tp4065958p4077929.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to