lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: Tomcat JNDI Settings
Date Thu, 08 Nov 2007 19:31:47 GMT
: I just wanted to follow up to the list on this one...I could never get
: the JNDI settings to work with Tomcat. I went to Jetty and everything is

I'm not sure what to tell you.  

I've been preping my ApacheCon demo for next week using Tomcat and JNDI 
and i haven't had any problems .... i've got a few helper scripts that 
save me typing when i set it up (they use "sh -x" to echo the shell 
commands they execute when they run), but here's everything i do just so 
you can see what i've got going on ... it might help you figure out what's 
not working about your setup.

At the end of all of this Solr is up and running in tomcat using my 
configured SolrHome...

chrish@asimov:/var/tmp/ac-demo$ pwd
chrish@asimov:/var/tmp/ac-demo$ ls
books-solr-home           demo-links.html             raw-data   
tomcat-context.xml  tar-balls
chrish@asimov:/var/tmp/ac-demo$ find books-solr-home/
chrish@asimov:/var/tmp/ac-demo$ cat tomcat-context.xml


An example of declaring a specific tomcat context file that
points at our solr.war (anywhere we want it) and a Solr Home
directory (any where we want it) using JNDI.

We could have multiple context files like this, with different
names (and different Solr Home settings) to support multiple
indexes on one box.

  crossContext="true" >

  <Environment name="solr/home"
               override="true" />
chrish@asimov:/var/tmp/ac-demo$ ./
+ cd /var/tmp/ac-demo/
+ tar -xzf tar-balls/apache-tomcat-6.0.14.tar.gz
+ tar -xzf tar-balls/apache-solr-1.2.0.tgz
chrish@asimov:/var/tmp/ac-demo$ ls
apache-solr-1.2.0     books-solr-home           demo-links.html             raw-data   tomcat-context.xml
apache-tomcat-6.0.14  tar-balls
chrish@asimov:/var/tmp/ac-demo$ ./
+ mkdir -p apache-tomcat-6.0.14/conf/Catalina/localhost/
+ cp tomcat-context.xml apache-tomcat-6.0.14/conf/Catalina/localhost/books-solr.xml
chrish@asimov:/var/tmp/ac-demo$ apache-tomcat-6.0.14/bin/
Using CATALINA_BASE:   /var/tmp/ac-demo/apache-tomcat-6.0.14
Using CATALINA_HOME:   /var/tmp/ac-demo/apache-tomcat-6.0.14
Using CATALINA_TMPDIR: /var/tmp/ac-demo/apache-tomcat-6.0.14/temp
Using JRE_HOME:       /opt/jdk1.5
Usage: ( commands ... )
  debug             Start Catalina in a debugger
  debug -security   Debug Catalina with a security manager
  jpda start        Start Catalina under JPDA debugger
  run               Start Catalina in the current window
  run -security     Start in the current window with security manager
  start             Start Catalina in a separate window
  start -security   Start in a separate window with security manager
  stop              Stop Catalina
  stop -force       Stop Catalina (followed by kill -KILL)
  version           What version of tomcat are you running?
chrish@asimov:/var/tmp/ac-demo$ apache-tomcat-6.0.14/bin/ start
Using CATALINA_BASE:   /var/tmp/ac-demo/apache-tomcat-6.0.14
Using CATALINA_HOME:   /var/tmp/ac-demo/apache-tomcat-6.0.14
Using CATALINA_TMPDIR: /var/tmp/ac-demo/apache-tomcat-6.0.14/temp
Using JRE_HOME:       /opt/jdk1.5

View raw message