tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jones <tjo...@acworld.com>
Subject Re: Tomcat Configuration Help
Date Thu, 05 Aug 2010 23:58:50 GMT
Chuck, thanks! I have been missing the obvious. I'm not sure how I've missed that for this
long.

"ROOT is the required name for the default webapp for a <Host>."

I have it working per your suggestions and guidance, thanks a bunch.

Tom




----- Original Message -----
From: "Charles R Caldarale" <Chuck.Caldarale@unisys.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Thursday, August 5, 2010 4:21:02 PM
Subject: RE: Tomcat Configuration Help

> From: Tom Jones [mailto:tjones@acworld.com]
> Subject: Re: Tomcat Configuration Help
> 
> I put the <Context> element in so that I could set the
> docBase to my app directory thus avoiding the need to 
> append "appWebServices" to the URL. Is there a better 
> way to do this?

Yes - do what I said:

> > > tomcat
> > > - webapps
> > > -- appWebServices
> > > -- appMainUserSite
> > 
> > That's not good.  Each <Host> should have its own appBase; by sharing
> > them, you've made both apps available on both hosts.
> >
> > > <Context path="" docBase="appWebServices"/>
> > 
> > This is bad; do not put <Context> elements in server.xml.  Your webapp
> > should be located in this <Host>'s appBase directory, and named ROOT
> > (case-sensitive, even on Windows).  What you have now got you double
> > deployment, once as the default webapp and once more as appWebServices
> > - confusing at best.  The <Context> element, if you need one at all -
> > and you don't, in this situation - should be in the webapp's META-
> > INF/context.xml file, in other words:
> > 
> >     [appBase]/ROOT/META-INF/context.xml
> > 
> > and must not include path or docBase attributes.

ROOT is the required name for the default webapp for a <Host>.

  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message