[prev in list] [next in list] [prev in thread] [next in thread]
List: tomcat-user
Subject: Re: Is deployOnStartup broken?
From: Erwin Hogeweg <erwinhogeweg () mac ! com>
Date: 2008-09-30 23:37:12
Message-ID: EB7EF3CD-3237-46ED-8948-B481FA7F2C2D () mac ! com
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic