tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From exquisite <gautam_exquis...@yahoo.com>
Subject Re: Cannot make war file as default app
Date Fri, 12 Aug 2011 20:59:19 GMT
Thanks Chris for your reply. 

Yeah im trying the ROOT.war way too and here i have one more issue with that:

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.

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

Im
 trying different ways to understand what tomcat really is doing. Please
 explain this as i have been through enough confusion already about 
whats going on. 

Again, this is Tomcat 6.0.32, jdk 1.5, windows 7 OS.

Thanks
G


________________________________
From: Christopher Schultz <chris@christopherschultz.net>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Friday, August 12, 2011 11:21 AM
Subject: Re: Cannot make war file as default app

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

G,

On 8/12/2011 4:55 AM, exquisite wrote:
> Hey Mark, I think i figured out what's going on with my
> configuration and I feel that the Tomcat Documentation is not too
> clear explaining this particular step.
> 
> I have been editing the server.xml in the $CATALINA_HOME/conf 
> directory, dropped my war in $CATALINA_HOME/webapps directory but by 
> default tomcat distribution comes with ROOT folder inside webapps 
> directory and there by its not able to deploy my war file as ROOT.

If that's the case, then you have not properly disabled auto-deploy in
your <Host>. That's the only way that the webapps/ROOT directory should
interfere.

Seriously, what's wrong with re-naming your WAR file to ROOT.war? It.
Just. Solves. So. Many. Problems.

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

iEYEARECAAYFAk5Fbz0ACgkQ9CaO5/Lv0PAV1QCfXhoknQcGOSUN3jwHmw21b2iI
angAoKUgJPT63bD1XwNrED0DkZcKuyOT
=Vg+1
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message