You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2008/05/27 22:08:20 UTC

[Solr Wiki] Update of "SolrTomcat" by HossMan

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 HossMan:
http://wiki.apache.org/solr/SolrTomcat

------------------------------------------------------------------------------
  </Context>
  }}}
  
+ A few things to keep in mind:
+    * The "conf/Catalina/localhost" directory may not exist by default in your installation.  You may have to create it.
+    * "/some/path/solr.war" is the absolute path to where ever you want to keep the Solr war using the appropriate syntax for your Operating System.  In Tomcat 5.5 and later, the war file must be stored outside of the webapps directory for this to work.  Otherwise, this entire Context element is ignored.
+    * "/my/solr/home" should be to where you have createed your Solr Home directory, using the appropriate syntax for your Operating System.
+    * Prior to Tomcat 5.5, a "path" attribute was required for Context elements (starting with 5.5, the path attribute must not be used except when statically defining a Context in server.xml, as it will be inferred from the Context fragment filename.
+ 
  ==== Setting Solr Home from web.xml of solr web app ====
- Unzip the solr war into Tomcat webapp folder and add  the  following snippet into web.xml 
+ /!\ :TODO: /!\ ? remove this, move it comments in web.xml? /!\ 
+ 
+ For people who want to customize the solr.war, the Solr Home can be set by adding the following snippet into web.xml 
  {{{
   <env-entry>
      <env-entry-name>solr/home</env-entry-name>
@@ -83, +91 @@

      <env-entry-value>/put/your/solr/home/here</env-entry-value>
  </env-entry>
  }}}
- 
- 
- A few things to keep in mind:
-    * The "conf/Catalina/localhost" directory may not exist by default in your installation.  You may have to create it.
-    * "/some/path/solr.war" is the absolute path to where ever you want to keep the Solr war using the appropriate syntax for your Operating System.  In Tomcat 5.5 and later, the war file must be stored outside of the webapps directory for this to work.  Otherwise, this entire Context element is ignored.
-    * "/my/solr/home" should be to where you have createed your Solr Home directory, using the appropriate syntax for your Operating System.
-    * Prior to Tomcat 5.5, a "path" attribute was required for Context elements (starting with 5.5, the path attribute must not be used except when statically defining a Context in server.xml, as it will be inferred from the Context fragment filename.
  
  [[Anchor(MultiWebappJndi)]]
  == Multiple Solr Webapps ==