Bug 37523 - Virtual Host ROOT context ignores docBase value
Summary: Virtual Host ROOT context ignores docBase value
Status: RESOLVED WONTFIX
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Unknown (show other bugs)
Version: 5.5.12
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-16 05:20 UTC by Rob Hills
Modified: 2005-11-16 02:15 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rob Hills 2005-11-16 05:20:06 UTC
We are often developing a number of applications simultaneously, typically
running from the Root directory so we use the Virtual Host functionality in
Tomcat exclusively.  We develop on Windows workstations and our problem occurs
on both Win 2000 and Win XP.  Prior to upgrading to Tomcat 5.5.12, we would put
our web app into a directory (eg d:\wwwroot\test), use the Admin console to
create a virtual host with the appBase pointing to this directory
(d:/wwwroot/test), then create a root context with a docBase of "./" and a path
of "/".  This all worked perfectly.

Since upgrading to Tomcat 5.5.12, we find that this process works as before,
until we restart Tomcat.  Then the application fails to work and the following
appears in the Tomcat error log:

WARNING: A docBase D:\wwwroot\test\. inside the host appBase has been specified,
and will be ignored
16/11/2005 11:29:29 org.apache.catalina.core.StandardContext resourcesStart
SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base d:\wwwroot\test\ROOT does not
exist or is not a readable directory

I can provide a suitable example application for testing if required.
Comment 1 Remy Maucherat 2005-11-16 11:15:51 UTC
Well, sorry, this is as expected. If the webapp is inside the host's appBase,
then docBase is fixed.