You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by René Hackl <re...@gmx.de> on 2009/09/18 10:25:39 UTC

Multicore Solr + Tomcat

Hello,

I have setup Tomcat 6 and Solr 1.3.0 and it works fine for single cores. Now I am trying to make it multicore and the cores don't seem to be recognized.

This works:

/solr/home/conf/schema.xml
/solr/home/conf/solrconfig.xml
/solr/home/data/

Clicking the admin link on the "Welcome to Solr" page brings up the familiar Solr admin page at http://localhost:8080/apache-solr-1.3.0/admin/ 

Changing the setup to multicore like this works not:

/solr/home/core1/conf/schema.xml
/solr/home/core1/conf/solrconfig.xml
/solr/home/core1/data/
/solr/home/core2/conf/schema.xml
/solr/home/core2/conf/solrconfig.xml
/solr/home/core2/data/
/solr/home/solr.xml

In solr.xml I do:

<solr persistent="false" sharedLib="lib">
  <cores adminPath="/admin/cores">    
    <core name="core1" instanceDir="core1" />
    <core name="core2" instanceDir="core2" />
  </cores>
</solr>

Clicking the admin link brings up an error message at http://localhost:8080/apache-solr-1.3.0/admin/

HTTP Status 404 - missing core name in path

The requested resource (missing core name in path) is not available.


Manually editing the URL to http://localhost:8080/apache-solr-1.3.0/admin/cores leads to 

HTTP Status 500 - Can not find a valid core for the cores admin handler java.lang.RuntimeException: Can not find a valid core for the cores admin handler at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:162) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11
 Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Unknown Source) 

And adding core names to the path at one position or the other also brings up 404 Errors.

Any hints on what to look for are greatly appreciated.

Thanks,
Rene
-- 
Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02