Sirena solr, siren.xml

As siren documentation explains, the file located in tomcat/conf/Catalina/localhost must set the path of the war file. I have tried with the absolute path, but I wanted to used a relative path, because it is not only me who will use siren.

siren.xml

<Context docBase="/../../../webapps/siren" debug="0" crossContext="true" >
   <Environment name="siren/home" type="java.lang.String" value="/../../../webapps/siren" override="true" />
</Context>

But running my tomcat I get this error:

GRAVE: Error running static resources
java.lang.IllegalArgumentException: Document /webapps/siren does not exist or is not a readable directory

How could I set up this configuration??

Gracias por adelantado

preguntado el 02 de febrero de 12 a las 10:02

1 Respuestas

Yo he omitido docBase attribute as solr works in Tomcat without this configuration.

También asegúrese de que nombre de archivo.xml in conf/Catalina/localhost must match folder (or war) in webapps folder. In your example your application should be in webapps/siren/.

<Context debug="0" crossContext="true">
  <Environment name="solr/home" type="java.lang.String" value="./path_to_siren" override="true"/>
</Context>

Replace /path_to_siren with relative path from Tomcat root to siren (solr configuration).

Respondido 03 Feb 12, 04:02

Thanks. I get this error: Can't find resource 'solrconfig.xml' in classpath or './Users/blancahernandeznieto/tomcat-sony-prot1_A/bin/solr/comicCon/conf/./conf/' - Blanca Hdez

I set the configuration: <Environment name="solr/home" type="java.lang.String" value="./Users/blanca/tomcat/bin/solr/coreName/conf" override="true" /> - Blanca Hdez

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.