https://issues.apache.org/bugzilla/show_bug.cgi?id=50441
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
AssignedTo: [email protected]
ReportedBy: [email protected]
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
exist.
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
appBase.
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
external.
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: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]