Hi,

I'm using tomcat5.5 too. I believe you need to specify override to be true.

<Context docBase="/solr/solr.war" debug="1" crossContext="true">
   <Environment name="solr/home" type="java.lang.String" 
value="/solr/example/solr"/ override="true">
</Context>

HTH,

mit freundlichen Grüßen,
 
Stefan Oestreicher
 
--
Dr. Maté GmbH
Stefan Oestreicher / Entwicklung
[EMAIL PROTECTED]
http://www.netdoktor.at
Tel Buero: + 43 1 405 55 75 24
Fax Buero: + 43 1 405 55 75 55
Alser Str. 4 1090 Wien Altes AKH Hof 1 1.6.6

-----Ursprüngliche Nachricht-----
Von: Kjeld Froberg [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 13. Juni 2008 11:22
An: solr-user@lucene.apache.org
Betreff: Problems finding solr/home using JNDI on tomcat

Hi

I'm using solr 1.2.0 on a Tomcat 5.5 engine And have copied a solr.xml in
catalina_home/conf/hostname

<Context docBase="/solr/solr.war" debug="1" crossContext="true">
   <Environment name="solr/home" type="java.lang.String" 
value="/solr/example/solr"/>
</Context>

And Tomcat certainly reads the solr.xml file, because solr is deployed fine.
However it cannot find the environment property, because there is a
javax.naming.NoInitialContextException when trying to lookup the JNDI name.

13-06-2008 10:24:46 org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
13-06-2008 10:24:46 org.apache.solr.core.Config getInstanceDir
INFO: JNDI not configured for Solr (NoInitialContextEx)
13-06-2008 10:24:46 org.apache.solr.core.Config getInstanceDir

Any suggestions for how to solve that?

Regards
Kjeld

Reply via email to