The following regarding Context Descriptors is in the documentation for
Tomcat 6. I'm wondering why the included contexts such as /examples, /docs,
/host-manager, and ROOT (/) don't have Context Descriptors generated as
described below. 


The locations for Context Descriptors are; 

$CATALINA_HOME/conf/[enginename]/[hostname]/context.xml 
$CATALINA_HOME/webapps/[webappname]/META-INF/context.xml 

If a Context Descriptor is not provided for a Context, Tomcat automatically
creates one and places it in (1) with a filename of [webappname].xml
although if manually created, the filename need not match the web
application name as Tomcat is concerned only with the Context configuration
contained within the Context Descriptor file(s). 


The only one that I see one for is /manager, which leads to my next
question. Why, under /manager, do I see the following in
/manager/manager.xml:


<Context docBase="${catalina.home}/server/webapps/manager"
         privileged="true" antiResourceLocking="false"
antiJARLocking="false">

  <!-- Link to the user database we will get roles from -->
  <ResourceLink name="users" global="UserDatabase"
                type="org.apache.catalina.UserDatabase"/>

</Context>


And the following in /manager/META-INF/context.xml? Why the presence of two
context descriptors?


<Context antiResourceLocking="false" privileged="true" />


And finally, why do I see the docBase as
"${catalina.home}/server/webapps/manager" in the previous manager.xml, when
the default Tomcat 6 installation doesn't even have a server directory? What
confuses me is how it still works even when that directory isn't there or
created.
-- 
View this message in context: 
http://www.nabble.com/Context-Descriptors-tf3725427.html#a10425763
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to