tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 50441] New: It is not possible to have multiple instacnes of same docBase inside appBase
Date Thu, 09 Dec 2010 10:18:16 GMT

           Summary: It is not possible to have multiple instacnes of same
                    docBase inside appBase
           Product: Tomcat 6
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina

When I set docBase in context tag to relative path it is not possible to have
more then one Context with same docBase. For example

We have two XML files for our application in folder Catalina/localhost.
iis.xml and iisstampa.xml. Both of them have the same docBase="iis".
appBase is set to webbaps in Host tag in server.xml.

iis.xml is loaded corectly, but iisstampa.xml is not. This is because inside of
method org.apache.catalina.startup.HostConfig.deployDescriptor there is part
that recognizes that {tomcat_home}/webapps/iis folder is inside of appBase an
docBase attribute is ignored by calling context.setDocBase(null). This causes
Tomcat looks for folder iisstampa inside of appbase which of course does not

If we put this context and docBase outside appBase everything works corectly.

But described situation is in conflict with documentation because it is not
possible to have multiple instances of same docBase if the docBase is inside

This behavour is introduced in revision SVN 303926 of Tomcat 5.5 by remm (Remy
Maucherat) as a solution of bug 34840 to recognize if the context path is

This bug exists on Tomcat 7 also.

We experinced this bug during migration from tomcat 5.5.4 to Tomcat 6 so this
is reason reporting in Tomcat 6 section.

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message