tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boris <bo...@ipunplugged.com>
Subject Tomcat-6.0.6 - path attribute not honored in Context descriptor files.
Date Thu, 21 Dec 2006 10:11:41 GMT
Problem:
The "path" attribute in the Context descriptor file no used in
TC 5.5 and 6.0.

Background:
In an application deployment you whish to be able to install and
upgrade both tomcat and your WARS individually. In TC 4.1 this was
easily done by dropping a Context descriptor file in the webapps
directory. This Context descriptor contained beside local
configurations mainly what was deployed (docBase - which WAR) and where
it should be deployed (path - mount point for the WAR). Name of the
Context descriptor file was arbitrary except it had an '.xml'
extension.

The ability to drop Context descriptor files are now moved to the
$CATALINA_HOME/conf/[enginename]/[hostname] directory OK. The problem
is that the "path" attribute is ignored in the Context read from this
directory. Only Contexts defined in the server.xml file honors the
path attribute. Defining the Contexts in the server.xml file is though
discouraged of obvious reasons.

Boris

-- 
                              \\V//
                              (o o)
--------------------------ooO--(_)--Ooo-----------------------------
    You know you've achieved perfection in design,
        NOT when you have nothing more to add,
            but when you have nothing more to remove.
.....................................................................
Boris Prochazka                 E-mail: boris@ipunplugged.com
Arenavagen 23, Box 101 60       http://www.ipunplugged.com
SE-121 28 Stockholm Globen      [home]   +46  8  - 6040786
                                [office] +46  8  - 7255919
SWEDEN                          [mobile] +46 70  - 5125122

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message