What's the context file for Solr under Catalina? Should read something like 
this:

<Context path="/solr" docBase="/usr/share/solr"
   debug="0" privileged="true" allowLinking="true" crossContext="true">
  <!-- make symlinks work in Tomcat -->
  <Resources className="org.apache.naming.resources.FileDirContext" 
allowLinking="true" />

  <Environment name="solr/home" type="java.lang.String" 
value="/usr/share/solr" override="true" />
</Context>

Or you can set the Solr_home environment variable prior to starting Tomcat.

export JAVA_OPTS="$JAVA_OPTS -Dsolr.solr.home=/usr/share/solr"


http://wiki.apache.org/solr/SolrTomcat


On Thursday 09 December 2010 17:27:27 Bing Li wrote:
> Dear all,
> 
> I am a new user of Solr.
> 
> When using Solr, SolrHome is set to /home/libing/Solr. When Tomcat is
> started, it must read solrconfig.xml to get Solr data dir, which is used to
> contain indexes. However, I have no idea how to associate SolrHome with
> Solr data dir. So a mistake occurs. All the indexes are put under
> $TOMCAT_HOME/bin. This is NOT what I expect. I hope indexes are under
> SolrHome.
> 
> Could you please give me a hand?
> 
> Best,
> Bing Li

-- 
Markus Jelsma - CTO - Openindex
http://www.linkedin.com/in/markus17
050-8536620 / 06-50258350

Reply via email to