lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Moises <moi...@shoptimax.de>
Subject Re: Schemaless configuration using 4.10.2/API returning 404
Date Thu, 04 Dec 2014 18:21:28 GMT
Oh no, now *I* have that same problem again... :(

I have copied my (running) schemaless core to another server, the core 
runs schemaless (managed-schema is created etc.), solrconfig.xml and 
web.xml are identical besides the paths on the server ...
And yet on one Tomcat (7.0.28) the URL
/solr/schema/fields
is working, but on the other server (7.0.53) it is NOT and I get a 404 
error .... :(

I don't see any Exception in the logs and have no idea what's happening 
there...

My solrconfig.xml has this:

   <schemaFactory class="ManagedIndexSchemaFactory">
     <bool name="mutable">true</bool>
     <str name="managedSchemaResourceName">managed-schema</str>
   </schemaFactory>

and my web.xml has all the required REST Settings:

   <servlet>
     <servlet-name>SolrRestApi</servlet-name>
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
     <init-param>
       <param-name>org.restlet.application</param-name>
<param-value>org.apache.solr.rest.SolrRestApi</param-value>
     </init-param>
   </servlet>
   <servlet>
     <servlet-name>SolrConfigRestApi</servlet-name>
<servlet-class>org.restlet.ext.servlet.ServerServlet</servlet-class>
     <init-param>
       <param-name>org.restlet.application</param-name>
<param-value>org.apache.solr.rest.SolrConfigRestApi</param-value>
     </init-param>
   </servlet>
...
   <servlet-mapping>
     <servlet-name>SolrRestApi</servlet-name>
     <url-pattern>/schema/*</url-pattern>
   </servlet-mapping>
   <servlet-mapping>
     <servlet-name>SolrConfigRestApi</servlet-name>
     <url-pattern>/config/*</url-pattern>
   </servlet-mapping>

but the URL
http://localhost:8983/solr/logstash_logs/schema/fields
gives me a 404 error.

Any ideas anyone? What else may be missing here? Is there anything else 
I need to configure to make the REST schema ....

Thanks,
Stefan

Am 01.12.2014 um 20:51 schrieb nbosecker:
> Perfect - the web.xml configuration was exactly what was missing.
>
> Thanks so much! ;)
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Schemaless-configuration-using-4-10-2-API-returning-404-tp4167869p4171932.html
> Sent from the Solr - User mailing list archive at Nabble.com.

-- 
Mit den besten Grüßen aus Nürnberg,
Stefan Moises

*******************************************
Stefan Moises
Senior Softwareentwickler
Leiter Modulentwicklung

shoptimax GmbH
Ulmenstrasse 52 H
90443 Nürnberg
Amtsgericht Nürnberg HRB 21703
GF Friedrich Schreieck

Fax:  0911/25566-29
moises@shoptimax.de
http://www.shoptimax.de
*******************************************


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message