tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Cannot make war file as default app
Date Mon, 15 Aug 2011 15:21:06 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

G,

On 8/12/2011 4:59 PM, exquisite wrote:
> Now when i renamed my war to ROOT.war and drop it in webapps folder 
> (without any context in server.xml), it deploys fine for the first
> time as the root app (Creates a ROOT folder in webapps),  but if i
> make any change to any of my jsps and drop the new ROOT.war file, it
> says its deploying ROOT.war but it does not pick the changes after
> restart. It keeps showing me the old jsp when i run. I tried with
> autoDeploy=true in Host config but there is no change.

You shouldn't have to do anything strange to get this working. Tomcat's
default configuration is to auto-deploy WARs and directories in the
webapps/ directory and also to re-load them if they change.

The only thing that can get out-of-sync is the Tomcat deployment
descriptor (context.xml) that gets copied from the WAR file (or
directory) into conf/[Service]/[Hostname]/[appname].xml. You will have
to undeploy/deploy (or just delete the file) in order to update it.

> Do i have to manually delete the ROOT folder that tomcat creates,
> everytime before the fresh deployment?

No, but it might be a good idea to completely shut-down Tomcat, delete
the entire "work" directory as well as an exploded WAR directories in
webapps/ and any files in conf/[Service]/[Host]. Then, start Tomcat
normally and everything should run smoothly from there on out.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5JOWIACgkQ9CaO5/Lv0PAmsACgtCAzkxGLVfTIO9uQa552xpZd
gQoAn2qOmcqxgc3WUSOTEp1MRIbvTCc+
=ASxn
-----END PGP SIGNATURE-----

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


Mime
View raw message