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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
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