Hi, After trying all sorts of deploy types I have found the best, simplest and pain-free deploy in :
- Stop tomcat - Go to webapps folder - Remove the webapplication folder and the .war file - Copy the new war file - Start tomcat. In order to have a backup copy I also leave a .war file of the previous deploy as appname.war.anc (anchestor) Hope it helps you. Özgür Özdemircili http://www.acikkod.org Code so clean you could eat off it On Mon, Aug 30, 2010 at 12:55 PM, Rainer Frey <rainer.f...@inxmail.de>wrote: > Hi, > > what is the best practice to replace a webapp with a newer version in > production? > > I'm using Tomcat 6.0.29, with unpackWARs="true" autoDeploy="false". All > Webapps reside in appBase, some have a machine-specific context descriptor, > that I manually copy to conf/Catalina/localhost. > > I use the Tomcat Manager (via HTML-Interface) to deploy applications. What > is > the recommended way to upgrade a webapp to a newer version (same war name, > same desired context path)? > > The HTML manager has no "redeploy" option. "deploy" is not possible as the > context already exists. I tried to put the new war file into appBase, and > use > reload, but that won't update the expanded directory to the new war file. > > What I did is: > * undeploy > * copy new war file > * deploy > > This is cumbersome as I have to switch forth and back between manager and > file > operations. > > Is there a better way? > > Thanks > Rainer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >