Hi,

I'm trying to deploy a war and either set a java property or JNDI so that the 
war can find it's path for configuration. It seems to work when I pass an 
absolute path but not a relative path. For example:



<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1";
         xmlns:tom="http://geronimo.apache.org/xml/ns/j2ee/web/tomcat-2.0.1";
         xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2";>
    <gbean name="SolrProperties" 
class="org.apache.geronimo.system.properties.SystemProperties">
        <attribute name="systemPathProperties">
            sorl.solr.home=var/solr/home
        </attribute>
        <reference name="ServerInfo">
            <name>ServerInfo</name>
        </reference>
    </gbean>
    <context-root>solr</context-root>
    <work-dir>var/solr/home</work-dir>
</web-app>

Does anyone have any ideas how to do this? Correctly without hard-coding the 
path.

Regards,
Marcos

Reply via email to