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

Jamez,

On 9/1/2009 10:20 PM, jamez smith wrote:
> 1. "appBase" ----> <Host appBase="webapps" autoDeploy="true" debug="0"
> name="localhost" unpackWARs="true">
> 
> 2. working <Context>---> <Context docBase="*
> C:\\ProcurementProject\\WebContent*" path="/procurement"  reloadable="true"
> debug="1">
> *C:\\ProcurementProject\\WebContent *is where my application (source code
> etc.) located.
> 
> 3. not-working <Context>---> <Context docBase="*procurement*"
> path="/procurement"  reloadable="true" debug="1">
> *procurement* is the War file I deployed to webapps under Tomcat.

If you have autoDeploy="true" in your <Host> (which you do), and you
also have a <Context> pointing to a directory inside that <Host>'s
appBase (which you also do), Tomcat will attempt to deploy the same
application twice, most likely to the same context path, and probably fail.

If you want to deploy "procurement" from your webapps directory, simply
remove the <Context> element entirely from your server.xml file and
allow Tomcat to auto-deploy your webapp naturally.

If you need <Realm> or <Resource> elements inside your <Context>, then
you have two options:

1. Set autoDeploy="false" on your <Host>
or
2. Keep your <Context>'s docBase outside of your <Host>'s appBase

I agree with Chuck's and Mark's comments WRT JRE and Tomcat version.

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

iEYEARECAAYFAkqgAGsACgkQ9CaO5/Lv0PAS6wCdF1KKJQ73pK31LScKh4OS+hSb
iNAAnRfsoAiFVImvPgl8g2p2phrartVa
=Hyfw
-----END PGP SIGNATURE-----

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

Reply via email to