> From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat deployment question > > Please refer to the directory structure in the original message or > At the bottom of this email. > > Given that directory structure, I have working configuration > with appBase="webapps" in server.xml (seems like a dummy value > since we don't have anything in that directory).
The <Host> appBase attribute defines the default location for webapps. You don't have to use it, since it's often easier to keep your webapps completely outside of the Tomcat directory structure. > In ${catalina.home}/conf/catalina/localhost/ROOT.xml I have > defined the <Context> element with > docBase="${catalina.home}/htdocs". This is probably not a good idea. If you're not going to put your webapps under the appBase directory, you're probably better off keeping them entirely outside of the Tomcat directory structure. Throwing things into arbitrary locations can be a maintenance mess, especially at upgrade time > Previously, I had appBase="htdocs" and ROOT.xml was called > htdocs.xml. > 1) When absolute path such as ${catalina.home}/htdocs is > specified why does it look for ${catalina.home}/htdocs/htdocs/ I don't really understand the above question. Who is "it"? Where is the "absolute path" specified? What makes you think anyone or anything was looking for ${catalina.home}/htdocs/htdocs/? > 2) Why does it expect a ROOT directory under htdocs? Because you specified appBase to be "htdocs" and did not have a ROOT.xml to override the default location. > 3) What is special about ROOT? Should not the configuration be totally > under application Developer's control? Some means of specifying the default webapp is necessary, and the Tomcat developers chose to use ROOT as the default. It's all in the docs: http://tomcat.apache.org/tomcat-5.5-doc/config/context.html > 4) What is path? The path attribute for the <Context> element is no longer used, unless the <Context> element is within server.xml (strongly discouraged). "Path" in this instance refers to the URL sent by a client to access a webapp. > It is not very clear from the documenatation. It took me > a while to get to the current working Configuration. It may be working, but I wouldn't leave it that way. - 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]