tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikolaj Rydzewski <m...@ceti.pl>
Subject Re: getRealPath and war file
Date Wed, 09 Aug 2006 08:02:58 GMT
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.

-- 
Mikolaj Rydzewski <miki@ceti.pl>


Mime
View raw message