lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "SolrTomcat" by GregG
Date Fri, 14 Mar 2014 17:32:21 GMT
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 GregG:
https://wiki.apache.org/solr/SolrTomcat?action=diff&rev1=66&rev2=67

  }}}
   * 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
- 
+  * NOTES: The following are notes from a novice installer on Windows 7, Tomcat 7.0.50, and
Solr 4.7.0.  I had help from http://stackoverflow.com/questions/17619809/installing-apache-solr-4-3-1-on-apache-tomcat-6-0.
 I'm not sure everything is elegant, but this is how I got it working.
+    * Follow the instructions above.
+    * Logging Jars:  Make sure to copy the logging jars from C:\solr-4.7.0\example\lib\ext
to the Tomcat lib directory  (such as C:\apache-tomcat-7.0.50\lib) or you will likely get
a "severe error filterstart" error when starting Tomcat.
+    * Folder Structure:  In my case, I named the root folder C:\solr-4.7.0, I made a subfolder
called C:\solr-4.7.0\solr_home, and I copied the contents of C:\solr-4.7.0\example\solr directly
into into C:\solr-4.7.0\solr_home.  So inside C:\solr-4.7.0\solr_home there should be "bin"
and a "collection1" subfolders as well as several files.  
+    * Tomcat Startup: I started tomcat using C:\apache-tomcat-7.0.50\bin\startup.bat.  I
modified this file by adding the line "set JAVA_OPTS=-Dsolr.solr.home=c:\solr-4.7.0\solr_home
-Dsolr.velocity.enabled=false" and things worked. 
+    * So far I have not needed to modify the URIEncoding Connector as mentioned above.  I
believe that may not be necessary with solr-4.7.0+, but not sure.
+    * Tomcat by default runs on port 8080.  Solr includes a Java application called post.jar
for posting data to the index, which is referenced in the tutorial. It can be found in C:\solr-4.7.0\example\exampledocs.
Make sure that you pass this application the correct port number as by default it expects
port 8983 and you'll get a connection error.  For example, at a windows command prompt, "java
-Durl=http://localhost:8080/solr/update -jar post.jar hd.xml"
  === Multiple Solr apps ===
   * Download and install [[http://tomcat.apache.org/|Tomcat]] for Windows using the MSI installer.
Install it with the tcnative.dll file. Say you installed it in c:\tomcat\
   * Check if Tomcat is installed correctly by going to http://localhost:8080/

Mime
View raw message