lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wilkes, Chris" <>
Subject Re: solr current workding directory or reading config files
Date Wed, 09 Feb 2011 23:44:03 GMT
Is your war always deployed the the same location, ie "/usr/mycomp/ 
myapplication/webapps/myapp.war"?  If so then on startup copy the  
files out of your directory and put them under CATALINA_BASE/solr (usr/ 
mycomp/myapplication/solr) and in your war file have the META-INF/ 
context.xml JNDI setting point to that.

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

If you know of a way to reference CATALINA_BASE in the context.xml  
that would make it easier.

On Feb 9, 2011, at 12:00 PM, Tri Nguyen wrote:

> Hi,
> I have a class (in a jar) that reads from properties (text) files.   
> I have these
> files in the same jar file as the class.
> However, when my class reads those properties files, those files  
> cannot be found
> since solr reads from tomcat's bin directory.
> I don't really want to put the config files in tomcat's bin directory.
> How do I reconcile this?
> Tri

View raw message