Tomcat detects that a new .war files was added to the webapps directory and will unpack the new application file and add the context entry into the server.xml file when Tomcat is started. Tomcat will bypass the unpacking process on subsequent startups since the application already is registered in the server.xml file.
I believe what Pratt is asking in his inquiry concerns updates to the original application. It seems to me that Tomcat should recognize that a revised .war file has replaced the original and rebuild (unpack) the application on startup. I also have to remove the context entry to force Tomcat to re-build the revised application. This becomes a pain during development.
Are Pratt and I missing something or is this the normal behavior of Tomcat? I'm currently using Tomcat 4.1.18.
TAI.
John.
>From: Kevin Mukhar <[EMAIL PROTECTED]>
>Reply-To: "jdjlist" <[EMAIL PROTECTED]>
>To: "jdjlist" <[EMAIL PROTECTED]>
>Subject: [jdjlist] RE: Tomcat WAR Expansion
>Date: Sat, 01 Mar 2003 09:41:28 -0700
>
>Yes, that is standard behavior. It's one way to deploy a web
>application. You get a WAR from some source, put it into the webapps
>directory, and when the server starts up, it unpacks the web
>application and deploys it.
>
>Greg Nudelman wrote:
>
>>I don't know the details, and I've never seen it do that before,
>>but it seems strange that it would try to expand the WAR. Maybe
>>somewhere in some config file is the entry
>> "developer_environment=true"
>> or something like that... I can't see why it should try and
>>expand it by default. Any Tomcat gurus out there?
>> Greg
>>
>> -----Original Message-----
>> From: Prathap [mailto:[EMAIL PROTECTED]
>> Sent: Friday, February 28, 2003 8:26 AM
>> To: jdjlist
>> Subject: [jdjlist] Tomcat WAR Expansion
>>
>> Hi,
>>
>> When i place a WAR file into the Tomcat webapps folder, on
>> Restart tomcat
>> is not expanding the WAR if server.xml contains the Context
>>entry
>> related to
>> this, If i remove the Context entry it is expanding.
>>
>> Is there any configuration required to expand the WAR by
>>keeping the
>> Context entry in the server.xml?
>>
>> I am using Tomcat 4.1.18 version.
>>
>> Thanks and Regards,
>> Pratt
>> ---
>> You are currently subscribed to jdjlist as:
>>[EMAIL PROTECTED]
>> To unsubscribe send a blank email to
>> [EMAIL PROTECTED]
>> http://www.sys-con.com/fusetalk
>>
>>---
>>You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
>>To unsubscribe send a blank email to
>>[EMAIL PROTECTED]
>>http://www.sys-con.com/fusetalk
>
>
>
>
>
>---
>You are currently subscribed to jdjlist as:
>[EMAIL PROTECTED]
>To unsubscribe send a blank email to
>[EMAIL PROTECTED]
>http://www.sys-con.com/fusetalk