Hi all,

I am wondering how could I set a path for solr/home property.

Our solr home is inside the solr.war, so I don't want a absolute path(will
deploy to different boxes).

Currently I hard code a relative path as solr/home property in web.xml.

  <!-- People who want to hardcode their "Solr Home" directly into the
       WAR File can set the JNDI property here...
   -->
   <env-entry>
       <env-entry-name>solr/home</env-entry-name>
       <env-entry-value>*../webapps/solr/home*</env-entry-value>
       <env-entry-type>java.lang.String</env-entry-type>
    </env-entry>

But in this way, I have to start tomcat under bin/. Seems the root path here
is start path.

How could I set solr/home property to get ride of tomcat start path.

Thanks

Kun

Reply via email to