https://issues.apache.org/bugzilla/show_bug.cgi?id=50069
Summary: multi-level context paths don't work any more
Product: Tomcat 6
Version: 6.0.29
Platform: All
OS/Version: All
Status: NEW
Severity: blocker
Priority: P2
Component: Catalina
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=26152)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=26152)
patch to fix the reported bug
----------------------------------------------------------------------------------
Pleading for a simpler and more flexible Context Configuration scheme with
Tomcat.
----------------------------------------------------------------------------------
With every major upgrade of Tomcat multi-level context paths do not work any
more
as is currently the case with version 6.0.29 and version 7.0.2.
As internet search statistics show there is much confusion of ideas and
application of the context configuration attributes "docBase" and "path".
Sometimes they have to specified, sometimes they are ignored.
--------------------------------------------------------------------------------
Current status
--------------------------------------------------------------------------------
http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Automatic%20Application%20Deployment
Context attributes -
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
path:
The value of this field must not be set except when statically defining a
Context
in server.xml, as it will be inferred from the filenames used for either the
.xml
context file or the docBase.
docBase:
The Document Base (also known as the Context Root) directory for this web
application,
or the pathname to the web application archive file (if this web application
is being
executed directly from the WAR file). You may specify an absolute pathname
for this
directory or WAR file, or a pathname that is relative to the appBase
directory
of the owning Host.
WARNUNG: A docBase "..." inside the host appBase has been specified, and will
be
ignored
Multi-Level context paths:
Multi-level context paths may be defined using #, e.g. foo#bar.xml for a
context path of /foo/bar.
- Automatic Application Deployment without an application specific
context XML descriptor file in $CATALINA_BASE/conf/[engine_name]/[host_name]
docBase | path | context XML descriptor |
---------+-----------+------------------------+
/foo#bar | /foo/bar | |
- Automatic Application Delployment with an application specific
context XML descriptor file in $CATALINA_BASE/conf/[engine_name]/[host_name]
docBase | path | context XML descriptor |
---------+-----------+------------------------+
/foo/bar | /foo/bar | foo#bar.xml |
/foo#bar | /foo/bar | xyz.xml -> foo#bar.xml | does not work after rebooting
Deployment with Tomcat Web Application Manager:
Context Path (required) : /foo/bar
XML Configuration file URL: foo-bar.xml
WAR or Directory URL : .../foo/bar
===> results in
context XML descriptor - path - docBase
foo#bar.xml /foo/bar /foo#bar
===> should?! result in
context XML descriptor - path - docBase
foo#bar.xml /foo/bar /foo/bar
--------------------------------------------------------------------------------
Plea
--------------------------------------------------------------------------------
- Abondon linking of docBase and path to the context XML descriptor file name.
- Deprecate usage of the '#' character to define multi-level context paths
- Allow for unrestricted freedom to combine docBase with path settings in
accordance with the user's needs.
Sometimes less is more!
--
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]