Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running Solr with Jetty

Tags:

solr

jetty

I'm having a little trouble understanding how Solr fits in with Jetty, and why I can't seem to get the start.jar in the distribution package to work.

I can run all of the example configurations via java -jar start.jar. However, when I try to run something like the follwing --

java -Dsolr.solr.home=/Users/jwwest/solr -jar $(brew --prefix solr)/libexec/example/start.jar

-- the following error occurs:

java.io.FileNotFoundException: No XML configuration files specified in start.config or command line.
    at org.eclipse.jetty.start.Main.start(Main.java:506)
    at org.eclipse.jetty.start.Main.main(Main.java:95)

I opened up the start.jar file, and there is a start.config file located inside of the jar which I'm assuming should handle this configuration for me. I'm not understanding why it will work when run from inside of the distribution examples directory, but not outside of it.

like image 531
James Avatar asked Mar 05 '13 20:03

James


1 Answers

You also need to define the jetty.home property. Try:

java -Dsolr.solr.home=/Users/jwwest/solr -jar $(brew --prefix solr)/libexec/example/start.jar -Djetty.home=$(brew --prefix solr)/libexec/example
like image 199
Ryan Morlok Avatar answered Dec 06 '22 13:12

Ryan Morlok