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

13,770

<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.

Share:
13,770
Nikola Poša
Author by

Nikola Poša

I am a web developer and software architect specializing in PHP based applications and web services. I take care that the code I write is clean and in line with the best practices and the highest standards of object-oriented programming.

Updated on September 20, 2022

Comments

  • Nikola Poša
    Nikola Poša over 1 year

    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

  • Nikola Poša
    Nikola Poša almost 13 years
    That makes no difference. I've also tried multicore setup, for example: <core name="core0" instanceDir="core0" /> <core name="core1" instanceDir="core1" /> ... but that does not work neiter.