tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Tomcat default context
Date Mon, 19 Feb 2007 17:34:20 GMT
> From: Gardner, Brad [mailto:bgardner@rippe.com]
> Subject: Tomcat default context
> 
> I created the ROOT.xml file under <Tomcat Home
Dir>/conf/<engine>/<host>/
> and placed this tag into the file:
> 
> <Context docBase="mywebapp"/>

Don't put your webapp in the <Host>'s appBase directory; if you do it
may be deployed twice, once as the name on the .xml file, and once as
the name of the appBase sub-directory.  Keep the webapp outside of
Tomcat's directory structure, and use an absolute path on the docBase
attribute.

> This resulted in no change, and the default tomcat page still appears
> when I view my webapp.

You need to delete Tomcat's ROOT directory and everything in it.  (Or
rename it to something other than ROOT if you want to keep it around.)

> I have also tried adding path="" with the same result.

The path attribute is not allowed unless the <Context> is inside
server.xml, which you're trying to avoid.

> Any ideas on what I may be missing or mis-understanding?

You're not removing Tomcat's original default context.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

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