cle_clock
Home > wikikonf >  tom/actions/by kikonf > context







Context

print

Action : tom.context   (Category : tom, Name : context, By : kikonf)
Complete Name : tom.context.by.kikonf
Version : 1.0        License : Modified BSD License

Purpose of the tom category :
Easy to customize. This category use in background the Kikonf Repoz tools to create and configure Apache Tomcat ® root installs and Catalina bases at any level (server.xml, hosts or defaults).
You can use it to manage the whole Tomcat ® Architecture.

Purpose of this context plugin : Configure a Tomcat Context



 Configure a Tomcat Context

A Context represents a Web application

A web application is based on a Web Application Archive (WAR) file packed or unpacked.


(Excerpt from the Tomcat official site http://tomcat.apache.org, config/context.html )
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. foo#bar.xml for a context path of /foo/bar.
The default web application may be defined by using a file called ROOT.xml.
* Only if a context file does not exist for the application
in the $CATALINA_HOME/conf/[enginename]/[hostname]/;
in an individual file at /META-INF/context.xml inside the application files.
If the web application is packaged as a WAR then /META-INF/context.xml will be copied to
$CATALINA_HOME/conf/[enginename]/[hostname]/ and renamed to match the application's context path.
Once this file exists, it will not be replaced if a new WAR with a newer /META-INF/context.xml is placed
in the host's appBase.
* inside a Host element in the main conf/server.xml


Trademarks:
___________

"Apache Tomcat" and "Tomcat" are trademarks of the Apache Software Foundation.
Use of these trademarks is subject to the terms of section 6 of Apache License, Version 2.0 (current).



Trademarks :
  • "Apache", "Apache Tomcat" and "Tomcat" are trademarks of the Apache Software Foundation.
  • "Java" and "JVM" are a registred trademarks of Oracle and/or its affiliates.
  • Other names may be trademarks of their respective owners.

Copyright © 2011 - Patrick Placidoux, Hélène Malamoud