tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Quilici <>
Subject Re: getRealPath and war file
Date Wed, 09 Aug 2006 08:32:32 GMT
Mikolaj Rydzewski wrote:
> Romain Quilici wrote:
>> However, Tomcat creates automatically a directory under webapps to 
>> contain war file contents, so I am wondering if Tomcat is using the 
>> newly generated directory to load the application(1st case) or
>> the war file (2nd case).
>> In the first case context.getRealPath("/") should return the path to 
>> the newly generated directory.
>> In the second case, why does Tomcat generate the directory to contain 
>> war file contents?
> I.e. for performance reasons.
> One should use context.getResourceAsStream() to read files from both 
> war or expanded directory.
Hi all,
thanks for the answer.
My pb is more to write in a given directory(must be accessible with a 
url), than to read.
And I would prefer this directory to be located in my webapp.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message