To really make sure it gets deployed you have to delete the webapp from the
~/tomcat/work/servername directory.
So, if you want, add something to your startup.sh script (or startup.bat)
like
rm -rf /tomcathome/work/servername/webappname
That will clear it completely and force Tomcat to redeploy it.
I have Ant doing that job with something like this:
<target name="redeploy" description="Removes the webapp from the
classloader">
<delete dir="/tomcathome/work/servername/webappname"/>
</target>
And I call that target from the <target name="compile"> target to make sure
my App is cleared from Tomcat. I think the new Tomcat 4.1 has an integrated
Ant
task to do this, and maybe a better way in the manager app. But until then
I
think you have to use one of these two options.
Charlie
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 3:16 PM
> To: [EMAIL PROTECTED]
> Subject: Automatically Redeploy WAR's
>
>
> Hello,
>
> I've been experimenting with WAR's on my dev server and have
> found that after a WAR is deployed for the first time, it is not
> redeployed on subsequent server bounces. I've looked through the
> functionality in /manager and can find nothing that allows you to
> have a web app redeploy the WAR on server startup. Does anyone
> know how to do this?
>
> Mike
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> -----Original Message-----
> From: Kevin Andryc [mailto:[EMAIL PROTECTED]]
> Sent: Friday, July 26, 2002 4:57 PM
> To: Tomcat Users List
> Subject: Servlets using old classes
>
>
> I updated a class file in my web application. The problem is that
> my servlet
> that uses that class file isn't picking up the changes. It seems
> to be still
> using the old class file. I restarted Tomcat, but when I access
> my servlet,
> it still has signs that it is using the old class file. How is this so?
> Anyone have any ideas?
>
> Thanks,
> Kevin
>
>
> Kevin Andryc
> Web Systems Engineer
> MISER
> http://www.umass.edu/miser/
> Phone: (413)-545-3460
> [EMAIL PROTECTED]
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>