You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Devatha Naga Puneeth <dn...@gmail.com> on 2023/03/02 14:20:17 UTC

Unpackwar

Hi,

I checked the documentation and only understood that if unpackwar enabled
then contents of the application will be extracted in the appBase.

What is the use of UnpackWar to false ? When to prefer true and false ?

AW: Unpackwar

Posted by "Thomas Hoffmann (Speed4Trade GmbH)" <Th...@speed4trade.com.INVALID>.
Hello,

maybe this page gives a good overview:
https://tomcat.apache.org/tomcat-9.0-doc/config/automatic-deployment.html

Greetings, Thomas

> -----Ursprüngliche Nachricht-----
> Von: Devatha Naga Puneeth <dn...@gmail.com>
> Gesendet: Donnerstag, 2. März 2023 15:20
> An: users@tomcat.apache.org
> Betreff: Unpackwar
> 
> Hi,
> 
> I checked the documentation and only understood that if unpackwar enabled
> then contents of the application will be extracted in the appBase.
> 
> What is the use of UnpackWar to false ? When to prefer true and false ?

Re: Unpackwar

Posted by Mark Thomas <ma...@homeinbox.net>.
On 02/03/2023 14:43, Christopher Schultz wrote:
> Mark,
> 
> On 3/2/23 09:39, Mark Thomas wrote:
>> On 02/03/2023 14:20, Devatha Naga Puneeth wrote:
>>> Hi,
>>>
>>> I checked the documentation and only understood that if unpackwar 
>>> enabled
>>> then contents of the application will be extracted in the appBase.
>>>
>>> What is the use of UnpackWar to false ? When to prefer true and false ?
>>
>> Generally, unpacked web applications are going to be faster.
>>
>> I can't think of a really good reason to run from a packed WAR file 
>> off-hand.
> 
> Read-only filesystem / directory. Not a "really good reason", but a 
> potential one.
> 
> One could make a claim that Tomcat is less vulnerable if it (including 
> its deployed web applications) cannot write to any place on the disk 
> where code can be executed.

But you can copy the unpacked web application to such a file system just 
as easily as you can copy a single WAR file.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Unpackwar

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Mark,

On 3/2/23 09:39, Mark Thomas wrote:
> On 02/03/2023 14:20, Devatha Naga Puneeth wrote:
>> Hi,
>>
>> I checked the documentation and only understood that if unpackwar enabled
>> then contents of the application will be extracted in the appBase.
>>
>> What is the use of UnpackWar to false ? When to prefer true and false ?
> 
> Generally, unpacked web applications are going to be faster.
> 
> I can't think of a really good reason to run from a packed WAR file 
> off-hand.

Read-only filesystem / directory. Not a "really good reason", but a 
potential one.

One could make a claim that Tomcat is less vulnerable if it (including 
its deployed web applications) cannot write to any place on the disk 
where code can be executed.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Unpackwar

Posted by Mark Thomas <ma...@apache.org>.
On 02/03/2023 14:20, Devatha Naga Puneeth wrote:
> Hi,
> 
> I checked the documentation and only understood that if unpackwar enabled
> then contents of the application will be extracted in the appBase.
> 
> What is the use of UnpackWar to false ? When to prefer true and false ?

Generally, unpacked web applications are going to be faster.

I can't think of a really good reason to run from a packed WAR file 
off-hand.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org