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.

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

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

Reply via email to