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.

HTH,

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to