tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Szelag" <...@fontanus.com>
Subject Context elements in individual files
Date Thu, 23 Jan 2003 20:38:02 GMT
Hello,
 
Tomcat (4.1) documentation
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html )
says that Context elements that are defined inside a Host element in
server.xml can be stored in individulal files (with an ".xml" extension)
in the appBase directory for a Host. Despite that I noticed the
following problems:
 
1)       It is not possible to store the Context for the default Web
application of a Host in a separate file. That Contaxt has to be defined
in server.xml.
 
2)       If a Context is stored in a separate file and contains the
nested Parameter elements they seem to be ignored and corresponding
values are not available for servlets
(getServletContext().getInitParameter()). If the same Context definition
is moved to server.xml everything works fine.
 
Could anyone confirm the above behavior when using Tomcat 4.1? 
 
Thanks,
Lukasz Szelag
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message