If you have webapps directory under /usr/local/tomcat, place solr.war to there.

http://wiki.apache.org/solr/SolrTomcat

Koji


Tim Haughton wrote:
Hi, I'm all at sea with this. I'm trying to get Ubuntu 9.04 (x64 Server),
Tomcat 6.0.18 and Solr 1.3.0 to play together. So far, no dice. Here's where
I'm at:

I installed Java:

sudo aptitude install sun-java6-jdk

I downloaded the latest Tomcat (6.0.18) and stuck it in /usr/local/tomcat

I downloaded the latest Solr (1.3.0) and dropped the war file in
/usr/local/solr/

I intend the index to live at /var/solr/ and dropped the example home
directory into this.

I added the following context fragment at
/usr/local/tomcat/conf/Catalina/localhost/solr.xml

<Context docBase="/usr/local/solr/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="/var/solr"
override="true" />
</Context>

I added the following startup script into init.d

    # Tomcat auto-start
    #
    # description: Auto-starts tomcat
    # processname: tomcat
    # pidfile: /var/run/tomcat.pid

    export JAVA_HOME=/usr/lib/jvm/java-6-sun
    export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/var/solr"

    case $1 in
    start)
            sh /usr/local/tomcat/bin/startup.sh
            ;;
    stop)
            sh /usr/local/tomcat/bin/shutdown.sh
            ;;
    restart)
            sh /usr/local/tomcat/bin/shutdown.sh
            sh /usr/local/tomcat/bin/startup.sh
            ;;
    esac
    exit 0


When I navigate to http://myServer:8080 I get the Tomcat page. If I navigate
to http://myServer:8080/solr/admin I get:

HTTP Status 404 - /solr/admin
------------------------------

*type* Status report

*message* */solr/admin*

*description* *The requested resource (/solr/admin) is not available.*
------------------------------
Apache Tomcat/6.0.18
Any suggestions as to what I'm doing wrong? Or what I could to to get more
information?

Cheers,

Tim


Reply via email to