Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting "missing core name in path" when trying to access Solr admin installed on Glassfish

Tags:

solr

glassfish

I've installed Solr 3.1 on Glassfish, and that part passed smoothly, as when I visit<host>:<port>/solr, I get that "Welcome to Solr!" page, along with "Solr Admin" link.

Problems start when I try to opet admin panel, I get "HTTP Status 404 - missing core name in path". I have no clue why is that happening. Previously, I've been testing that default Solr example (single core) at localhost, but using Jetty, shipped with Solr release in form of that start.jar.

I've set system property solr.solr.home to point to the folder where solr.xml and conf folder is located, and here's the content of mentioned solr.xml:

<solr persistent="false"
  <cores adminPath="/admin/cores" defaultCoreName="collection1">
    <core name="collection1" instanceDir="." />
  </cores>
</solr>

As you can see, just simple single core setup.

Any idea?

Thanks in advance

like image 381
Nikola Poša Avatar asked May 20 '11 11:05

Nikola Poša


1 Answers

<solr persistent="false" <cores adminPath="/admin/cores" defaultCoreName="collection1"> <core name="collection1" instanceDir="collection1" /> </cores> </solr>

and a directory structure of:

collection1 (containing dirs, conf and data)
solr.xml

is the proper way to do it.

like image 87
jem Avatar answered Sep 30 '22 19:09

jem