On Thu, Jul 23, 2015, at 10:14 PM, Darin Amos wrote:
> Hello,
> 
> I have been trying to run the SOLR war with embedded Jetty and can’t seem
> to get the config quiet right. Is there any known documentation on this
> or is someone else doing this? I seem to just be setting up a document
> server at my solr.home directory. The code snippet below seems incomplete
> to me, but I can’t seem to find what I am missing. 
> 
> Thanks!
> 
> Darin
> 
> Server solrServer = new Server(8983);
> 
> WebAppContext solrApp = new WebAppContext();
> solrApp.setContextPath("/");
> solrApp.setWar("solr.war");   //solr.war is sitting in my java.home root
> for now.
> solrServer.setHandler(solrApp);
> 
> solrServer.start();
> solrServer.join();

I suspect the question needed here is "why do you want to use an
Embedded jetty?"

If it is for the sake of running tests, I'd suggest you look at the
tests that run within Solr itself.

Upayavira

Reply via email to