Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solr localhost:8983 Not Found

Tags:

java

solr

jetty

I have downloaded Solr 3.5.0. After unzipping I cd into solr\example and then run java -jar start.jar. The following message comes up:

Logging to STDERR via org.mortbay.log.StdErrLog jetty-6.1-SNAPSHOT Started [email protected]:8983

If I then go to http://localhost:8983/ in my browser I get an error:

Error 404 - Not Found. No context on this server matched or handled this request. Contexts known to this server are:

With nothing under the contexts.

If I go to http://localhost:8983/solr/admin I then get

HTTP ERROR: 404

Problem accessing /solr/admin. Reason:

NOT_FOUND

Powered by Jetty://

I am on a Windows7 machine if that helps. What am I doing wrong?

like image 382
ianckc Avatar asked Dec 13 '11 15:12

ianckc


2 Answers

The first error is normal, you should go to http://localhost:8983/solr/ instead of http://localhost:8983. In fact the only web application running within jetty is contained in the solr.war, so you need to add the solr context to access it.

Then you should see the Solr welcome page where you can click on the Solr Admin link, which perhaps should point to the location you already tried: http://localhost:8983/solr/admin.

Anyway, when you try to access to http://localhost:8983/ Jetty should list the available contexts, but don't have any context on your list, while I have /solr ---> org.mortbay.jetty.webapp.WebAppContext etc.. This means the solr webapp is not starting correctly.

like image 86
javanna Avatar answered Sep 23 '22 04:09

javanna


If you downloaded the source-version of Solr you need to run ant example to get the example code installed...

Would have been nice, if it were mentioned in the README ;o)

like image 4
FlashKorten Avatar answered Sep 23 '22 04:09

FlashKorten