You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Marcos Mendez <ma...@jitisoft.com> on 2012/12/05 16:46:58 UTC

war/webapp car/plan deployment - how to set a relative path based on geronimo dir

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