Here are the steps made:
1 Got Solr:
wget http://my.mirror.com/apache.org/lucene/solr/4.6.1/solr-4.6.1.tgz
Unziped in /root/solr/
Installed jetty 6:
Step 1 : Enable the jpackage repo Download the jpackage.repo file to your /etc/yum.repos.d/ directory.
cd /etc/yum.repos.d/
wget http://jpackage.org/jpackage50.repo
Step 2 : Install the jetty package you want
yum search jetty will show you a list of jetty packages you want to install. At the time of writing you get 2 options - jetty 5 and
jetty 6. We installed jetty 6.
yum install jetty6
- Copied /example/solr to /home/solr
- Copied /example/solr/contexts to /usr/share/jetty6/contexts
Copied /dist/solr.war to /usr/share/jetty6/webapps
Copied start.jar in my /home/solr directory
- Switched to the above directory and ran:
java -Dsolr.solr.home=/home/solr -jar start.jar
Got the exception:
java.io.FileNotFoundException: No XML configuration files specified in start.config or command line. at org.eclipse.jetty.start.Main.start(Main.java:502) at org.eclipse.jetty.start.Main.main(Main.java:96)
Usage: java -jar start.jar [options] [properties] [configs] java -jar start.jar --help # for more information
Any idea why?