-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Patrick,
Aside from Chuck's comments... On 1/13/2010 12:01 PM, Patrick Flaherty wrote: > Generally speaking, should your docBase point to the location containing > your application ? > > For example > > Host : www.myapp.com > appBase: c:\all-my-apps > > > Application: > app1 > Location: c:\all-my-apps\app1 If your <Host> for www.myapp.com has autoDeploy="true", then explicitly creating a <Context> with docBase=[appBase]/something is likely to create confusion because Tomcat may try to deploy the same webapp twice on the same path. :( If autoDeploy="true", then having a webapp in c:\all-my-apps\app1.war or the directory c:\all-my-apps\app1 means that it will be automatically deployed and therefore no <Context> element need appear in conf/server.xml. > Generally speaking would point my docBase to c:\all-my-apps\app1? Conceptually, yes. In practice, you should try to avoid explicitly setting the docBase unless you are using conf-file-based deployment using a deployment file in conf/[EngineName]/[HostName]/[AppName].xml. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAktOMvkACgkQ9CaO5/Lv0PAl4wCdGn7y93C40qPUjCn2fmVKiaHU eHgAn2P4tC94CdKVuZAnsrdu98JSPc0D =lfnl -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org