tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Virtual Host and dynamic webapp reloading
Date Wed, 26 Sep 2007 15:44:38 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dan,

Daniel M Garland wrote:
> <Host name="mydomain.com" appBase="webapps/mywebapp"
>   unpackWars="true" autoDeploy="true">
>   <Context path="" docBase="." debug="0" cookies="false" />
>   <Context path="/anotherapp" docBase="../anotherapp" debug="0" />

That docBase="." is going to give you nothing but trouble. Why can't you
just do this:

1. Start with a clean install of Tomcat.
2. Modify CATALINA_HOME/conf/server.xml to include your clustering
   configuration.
3. Drop ROOT.war into CATALINA_HOME/webapps
4. Drop anotherapp.was into CATALINA_HOME/webapps
5. Start up Tomcat

This should work. You don't need any crazy configuration. Your <Context>
configuration should be in META-INF/context.xml in each of your WAR files.

Tell me more about your virtual host configuration. Do you actually need
Tomcat to understand your virtual hosts? Or, is it sufficient to have
all applications available to all host names?

- -chris

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

iD8DBQFG+n5l9CaO5/Lv0PARAo1aAJ9umVYb/ikB/9BMuzTP+DOHSAIF8gCbBLS5
mib6X4Uo/BvMMMP7tL6L30k=
=gz0h
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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


Mime
View raw message