On Wed, Jan 23, 2008 at 05:01:35PM +0300, Konstantin Kolinko wrote:
> > On windows my issues appears to be that the context.xml from the
> > auth.war is being cached inside tc/conf/Catalina/localhost/...
> 
> "cached" is not the right word. It is how deployment mechanism works
> in tomcat. The presence of <app_name>.xml in
> tc/conf/Catalina/localhost/ means that you application has been
> successfully deployed.   Removal of the file means that you trigger
> the auto-deployment mechanism for your application.  See
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html for details
> (look for "$CATALINA_HOME/conf/[enginename]/[hostname]/" there)

Well, I can understand his confusion, as it mirrors my own.  Here is
what it says:

 Context elements may be explicitly defined:

    * in the $CATALINA_HOME/conf/context.xml file: the Context element
      information will be loaded by all webapps
    * in the
      $CATALINA_HOME/conf/[enginename]/[hostname]/context.xml.default
      file: the Context element information will be loaded by all
      webapps of that host
    * in individual files (with a ".xml" extension) in the
      $CATALINA_HOME/conf/[enginename]/[hostname]/ directory. The name
      of the file (less the .xml) extension will be used as the
      context path. Multi-level context paths may be defined using #,
      e.g. context#path.xml. The default web application may be
      defined by using a file called ROOT.xml.
    * if the previous file was not found for this application, in an
      individual file at /META-INF/context.xml inside the application
      files
    * inside a Host element in the main conf/server.xml

 In addition to explicitly specified Context elements, there are
 several techniques by which Context elements can be created
 automatically for you.

Note:  "explicitly defined."  This says to me that
$CATALINA_HOME/conf/[enginename]/[hostname]/contextname.xml, if it
exists, is configuration data provided by the person deploying the
application.  It doesn't say anything about Tomcat owning these files
and being allowed to create and destroy them at will.

The documentation apparently doesn't reflect the behavior of the
code.  Let me say that I find the documented behavior much more useful
than what we actually get.

-- 
Mark H. Wood, Lead System Programmer   [EMAIL PROTECTED]
Typically when a software vendor says that a product is "intuitive" he
means the exact opposite.

Attachment: pgpILC1cF60dV.pgp
Description: PGP signature

Reply via email to