> From: Tom Jones [mailto:tjo...@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.