Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The following page has been changed by Matthew:
http://wiki.apache.org/solr/SolrTomcat

------------------------------------------------------------------------------
  == Configuring Solr Home with JNDI ==
  
  A Tomcat context fragments can be used to configure the JNDI property needed 
to specify your Solr Home directory.
+ 
+ === Tomcat 6 ===
+ 
+ The easiest way to set up SOLR under Tomcat 6 is to add the solr.home 
variable to your JVN settings. Add solr.war to your Tomcat webapps directory, 
and copy the entire /example/solr directory from the distributed SOLR package 
to your solr.home location. You get solr.war by renaming the 
apache-solr-1.2.war file to solr.war. After setting up solr.home as below, 
start Tomcat, and you should be up and running.
+ 
+ Set -Dsolr.solr.home=/opt/solr (...or wherever you're putting SOLR) in your 
Tomcat JVM settings. For example, 
+ 
+ {{{export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/opt/solr"}}}
+ 
+ === Tomcat 5 ===
  
  Just put a context fragment file under $CATALINA_HOME/conf/Catalina/localhost 
that looks something like this...
  

Reply via email to