Search code examples
javasolrtomcat7http-status-code-400

Error 404: missing core name in path' in Solr


I used:

//server.deleteByQuery( "*:*" );// CAUTION: deletes everything!

Query in my solr indexing program. Since then i am receiving the error whenever, I go to http://localhost:8080/solr/admin/

and press search with query string :

The error is:

HTTP Status 400 - Missing solr core name in path

type Status report

message Missing solr core name in path

description The request sent by the client was syntactically incorrect (Missing solr core name in path).

Apache Tomcat/7.0.21


Solution

  • What happens if you go to http://localhost:8080/solr/.
    Can you check your solr.xml (in solr's root) for defined cores.
    Also, you can check whether solr home is defined in your WEB-INF/web.xml.

    Check out this similar question for some similar and different solutions. And this one too.