You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/10/10 19:17:52 UTC
DO NOT REPLY [Bug 50069] New: multi-level context paths don't work
any more
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: dev@tomcat.apache.org
ReportedBy: MaassG@web.de
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50069] multi-level context paths don't work any
more
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50069
--- Comment #2 from gm <Ma...@web.de> 2010-10-10 15:04:31 EDT ---
Dear Mark Thomas,
I think I'm now understanding the facts.
You're right saying multi-level paths still work.
The point of confusion here is that from version 6.x.x on
multi-level docBases are'nt supported any further with the
exception of docBases being outside of the appBase of the host.
docBase | path | context XML descriptor file
--------------------+-----------+----------------------------
1. webapps/foo#bar | /foo/bar |
2. webapps/foo/bar | /foo/bar |
with version 5.x.x both 1. and 2. does work.
from version 6.x.x, 7.x.x on only case 1. works.
best regards
gm
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50069] multi-level context paths don't work any
more
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50069
--- Comment #3 from Mark Thomas <ma...@apache.org> 2010-10-10 15:07:39 EDT ---
OK. That's clearer. This is not going to change.
2. Was never intended to work and if it does it is pure luck.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 50069] multi-level context paths don't work any
more
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50069
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-10-10 13:28:35 EDT ---
I have read this report multiple times and I still don't understand it.
Multi-level contexts work for me with the latest 6.0.x and 7.0.x code.
The link between contextPath and docBase will not be broken. It is a deliberate
design designed that was made to simplify the auto-deployment process.
If there are areas of the documentation that you think could be improved then
patches suggestions for changes to the wording are welcome.
--
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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org