HTTP ERROR: 404 missing core name in path with solr

kshama picture kshama · Feb 6, 2010 · Viewed 53.2k times · Source

I am new to Solr, after installing it in ubuntu 8.10, when I was trying exampledocs to index , as per this link, I got this error:

HTTP ERROR: 404 missing core name in path

This is in Jetty.

What shall I do, in order to solve this?

Answer

H6. picture H6. · May 13, 2011

I've gotten the same error:

HTTP ERROR: 404 missing core name in path

In my case I've forgotten so set the solr/home value in the WEB-INF/web.xml file

<env-entry>
   <env-entry-name>solr/home</env-entry-name>
   <env-entry-value>/put/your/solr/home/here</env-entry-value>
   <env-entry-type>java.lang.String</env-entry-type>
</env-entry>

After I've added the above code and restarted the server, the error was gone.