On Friday 10 January 2003 03:53 pm, Charlie Toohey wrote: > per the Tomcat configuration documentation at > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html > > "you MUST define a Context with a context path equal to a zero-length > string. This Context becomes the default web application for this virtual > host, and is used to process all requests that do not match any other > Context's context path." > > I have two questions about this statement: > > 1) > I don't have a Context meeting this description and everything seems to > work fine, so what are the ramifications of violating this ?
Charlie, if you click on the Automatic Application Deployment link in the fourth or fifth paragraph on the same page, you will read the following: Automatic Application Deployment * Any XML ... * Any web... * Any subdirectory within the Application Base directory that appears to be an unpacked web application (that is, it contains a /WEB-INF/web.xml file) will receive an automatically generated Context element, even if this directory is not mentioned in the conf/server.xml file. This generated Context entry will be configured according to the properties set in any DefaultContext element nested in this Host element. The context path for this deployed Context will be a slash character ("/") followed by the directory name, unless the directory name is ROOT, in which case the context path will be an empty string (""). The last sentence seems to address your question but you could try deleting the ROOT directory, restarting Tomcat and seeing what happens then. > > 2) > If I were to follow this, and did not have an actual webapp with a > zero-length string as the context path (meaning that I would not have > anything valid to specify for docBase), would I then just create a dummy > webapp in directory ROOT (or wherever) just so that I could comply with > this ? > > - Charlie Paul -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>