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 2011/09/23 15:30:46 UTC

[Solr Wiki] Update of "SolrTomcat" by augustoccl

Dear Wiki user,

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

The "SolrTomcat" page has been changed by augustoccl:
http://wiki.apache.org/solr/SolrTomcat?action=diff&rev1=49&rev2=50

  = Solr with Apache Tomcat =
- 
  Solr has been tested on [[http://tomcat.apache.org/|Tomcat]] 5.5, 6, and 7.  In Tomcat 7 changes were made to how URLs are resolved which has resulted in a bug where requests with paths ending in a "/" may not work correctly with Solr, but will work if the "/" is removed.  See [[https://issues.apache.org/jira/browse/SOLR-2022|SOLR-2022]] for full details.
  
  See the instructions in the generic [[SolrInstall|Solr installation]] page for general info before consulting this page.
@@ -160, +159 @@

   * Configure Tomcat to recognize the solr home directory you created, by adding the Java Option -Dsolr.solr.home=c:\web\solr
    * either use the system tray icon to add the java option
    * or manually edit the environment script c:\tomcat\bin\setenv.bat and add it to JAVA_OPTS
+  * * Note: For Tomcat 7 and Solr3.4(last version on 2011-09-23), the above option on setenv.bat may not work, so you could not use it and put this code fragment<<BR>>     on ''$CATALINA_HOME/conf/Catalina/localhost/solr.xml<<BR>>     ''
+  {{{
+ <?xml version="1.0" encoding="UTF-8"?>
+ <Context docBase="C:\apache-tomcat-7.0.21\webapps\solr.war" debug="0" crossContext="true" >
+     <Environment name="solr/home" type="java.lang.String" value="C:\solr" override="true" />
+ </Context>
+ }}}
   * Start the Tomcat service
   * Go to the solr admin page to verify that the installation is working.  It will be at http://localhost:8080/solr/admin
  
@@ -192, +198 @@

  The MSI installer that installs Tomcat as a Windows service isn't prepared to support 64-bit Windows out of the box. There are some straightforward workarounds, though. See http://stackoverflow.com/questions/211446/how-to-run-tomcat-6-on-winxp-64-bit
  
  == //!\\ TODO //!\\ ==
- Indicate how to index in tomcat (rather than built-in jetty support via start.jar).  
+ Indicate how to index in tomcat (rather than built-in jetty support via start.jar).
  
  == External Resources ==
  http://www.ibm.com/developerworks/java/library/j-solr1/