tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Virtual hosts on tomcat > 5.5.15
Date Wed, 18 Nov 2009 14:18:45 GMT
> From: Matthias Pueski [mailto:matthias@pueski.de]
> Subject: Virtual hosts on tomcat > 5.5.15
> 
> <Host name="www.blah.de" debug="0" unpackWARs="true"
> appBase="/home/blah">
> <Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs"  prefix="virtual_log." suffix=".txt"
> timestamp="true"/>

There is no <Logger> element allowed in 5.5.

> <Context path="" docBase="" debug="0" reloadable="true"/>

As Pid noted, an empty docBase is illegal.  Also, you should not be placing <Context>
elements in server.xml.  If you want to define the default webapp for a <Host>, name
the .war file or directory ROOT (case sensitive), located immediately under the <Host>
appBase directory.  The <Context> element belongs in the webapp's META-INF/context.xml
file, or in conf/Catalina/[host]/[appName].xml.

The fact that anything "worked" under 5.5.15 is purely accidental, since your config is seriously
broken.  It appears to have been copied verbatim from a much older version of Tomcat (or perhaps
derived from the tons of misinformation about Tomcat out on the Internet), which is always
bad practice.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


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


Mime
View raw message