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