geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Mulder <>
Subject Re: File paths within the EAR file
Date Fri, 17 Feb 2006 15:31:53 GMT
So your web app is trying to refer to a file within the EAR?  I'm not
sure there's a portable way to do this.  If the file was within the
WAR it would be easy enough to load it as a relative path, and if was
in a JAR it would be possible to load it from the class loader -- I
think those would be better ways to go.


On 2/17/06, <> wrote:
> The hot deployment is excellent for the automation of the deployment.  But
> we ran into the problem of inability to specify the file path of the
> property files.
> We have the file path information in the web.xml as shown below
> <servlet id="Servlet_6">
>          <servlet-name>initialize</servlet-name>
> <servlet-class>com.web.someaction.InitializeServlet</servlet-class>
>           <init-param id="InitParam_i1">
>             <param-name>config</param-name>
>             <param-value>/opt/geronimo-1.0
> /deploy/some.ear/someweb.war/WEB-INF/classes/</param-value>
>          </init-param>
>          <load-on-startup>2</load-on-startup>
>       </servlet>
> Of course, geronimo will complain that it is not a directory.  Then we
> cannot predict the numeric directory name under /opt/geronimo-1.0
> /config-store  For the subsequent deployment, we know where the some.ear
> will be expanded into.  Would I have to deploy the application once for the
> first time just to know the /opt/geronimo-1.0/config-store/${NUMBER}?  Or
> is there any other way around this?
> Many thanks again in advance.
> Young

View raw message