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: Missing application web.xml, using defaults only - is this a Tomcat bug?
Date Mon, 17 Oct 2005 03:40:09 GMT
> From: Rob Hills [mailto:rob@netpaver.com.au] 
> Subject: Missing application web.xml, using defaults only - 
> is this a Tomcat bug?
> 
> I finally worked out that if you have a context.xml with the 
> following contents:
> 	<?xml version="1.0" encoding="UTF-8"?>
> 	<Context reloadable="true" docbase="ROOT">
> 	    <!-- gratuitous comment -->
> 	</Context>
> or
> 	<?xml version="1.0" encoding="UTF-8"?>
> 	<Context reloadable="true" docbase="ROOT">
> 	</Context>
> Tomcat will fail to deploy the web application and will 
> display the "missing application web.xml" message in the 
> stderr log file.

Not sure if this is relevant, but the attribute is docBase, not docbase.
However, using docBase inside a <Context> element that itself is in
META-INF/context.xml inside a .war file has always been puzzling to me.
As I understand it, docBase tells Tomcat where to find the webapp to
deploy; however, it must have already found the .war file, otherwise it
couldn't have gotten to the context.xml...  So what's the point of
docBase in this case?

Have you tried taking it out?  And, do you have autoDeploy enabled?
(Just suggesting more things to tinker with - no real answers here.)

 - 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