tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: getRealPath and war file
Date Wed, 09 Aug 2006 03:11:20 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).

If unpackWARs is true then the WAR is unpacked and the unpacked files
are used to load the application.

> In the first case context.getRealPath("/") should return the path to the
> newly generated directory.

To the best of my knowledge, it does.

> In the second case, why does Tomcat generate the directory to contain
> war file contents?

The directory is only generated if unpackWARs is true. Tomcat should
never, and doesn't as far as I am aware, unpack the WAR and the load
the app from the WAR.

You should also bear in mind that using antiJARLocking and/or
antiResourceLocking will also cause additional copies of files to be made.



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

View raw message