tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erwin Hogeweg <erwinhoge...@mac.com>
Subject Re: Is deployOnStartup broken?
Date Tue, 30 Sep 2008 23:37:12 GMT
Thanks guys.

That is not what I understand when I read the manual, but I guess it  
is what it is :-)

Erwin


On Sep 30, 2008, at 6:40 AM, Mark Thomas wrote:

> André Warnier wrote:
>> Mark Thomas wrote:
>>> Erwin Hogeweg wrote:
>>>> Hi,
>>>>
>>>> I am trying to re-deploy a war file on a RHES 5.2/Tomcat 6.0.16  
>>>> server,
>>>> but the war file does not expand when Tomcat is restarted.
>>>>
>>>> I have set the host variable deployOnStartup to "true", but even  
>>>> though
>>>> the war file has a newer timestamp that the deployed folder the  
>>>> file is
>>>> not re-deployed.
>>> That sounds like normal behaviour to me. If updating a WAR whilst
>>> Tomcat is
>>> not running, I would expect to have to remove the old WAR and old
>>> expanded
>>> directory. I would also clean out the work directory just to be on  
>>> the
>>> safe
>>> side.
>>>
>>>> The file IS redeployed when I 'touch' the war file while Tomcat is
>>>> running, or when the expanded folder does not exist.
>>> Again, I am pretty sure that is what was intended.
>>>
>>>> The catalina.out log file shows Deploying MyWar.war, but nothing  
>>>> really
>>>> happens.
>>>>
>>>> Is there any specific debug logging that I can enable which shows  
>>>> me
>>>> what is going on?
>>> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/HostConfig.java?revision=675650&view=markup
>>>
>>> is the source that is handles deployments. The WAR unpacking is
>>> handled by
>>> ContextConfig in the same package.
>>>
>>> Some additional logging is available if you turn up logging for  
>>> these
>>> classes. Add:
>>> org.apache.catalina.startup.HostConfig=FINE
>>> org.apache.catalina.startup.ContextConfig=FINE
>>>
>>> to your logging.properties
>>>
>>> Mark
>>
>> Translation : ;-)
>>
>> Tomcat does not "remember" the age of war files, between a stop and a
>> start. (In fact, Tomcat probably does not remember anything between a
>> stop and a start).
> It will remember sessions, if the Manager is configured to persist  
> them and
> it won't re-compile JSPs that have previously been compiled but that  
> is
> about it.
>
> <snip/>
>> (All the above assuming deployOnStartup="true" and autoDeploy="true")
>>
>> Correct, Mark ?
> I haven't double checked the code to confirm but that is what I would
> expect to see.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>


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


Mime
View raw message