geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcos Mendez <mar...@jitisoft.com>
Subject war/webapp car/plan deployment - how to set a relative path based on geronimo dir
Date Wed, 05 Dec 2012 15:46:58 GMT

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
Mime
View raw message