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 2006/10/26 22:09:43 UTC
DO NOT REPLY [Bug 40824] New: - Tomcat doesn't honor use of an empty string ("") to define the default web application for a Host outside server.xml
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40824>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40824
Summary: Tomcat doesn't honor use of an empty string ("") to
define the default web application for a Host outside
server.xml
Product: Tomcat 5
Version: 5.5.20
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: Unknown
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: jonwilmoth@yahoo.com
The documentation (http://tomcat.apache.org/tomcat-5.5-
doc/config/context.html) encourages users to define their context's outside of
the server.xml file to enable hot-deployments. The documentation also
says "If you specify a context path of an empty string (""), you are defining
the default web application for this Host, which will process all requests not
assigned to other Contexts" Unfortunately, unless the context is defined
inside the server.xml file, Tomcat doesn't recognize the empty string path
value. The workaround suggested on the user mailing list was:
To specify the default app, you must first delete the existing webapps/ROOT
directory, then install your app in webapps/ROOT (or webapps/ROOT.war) or put
your <Context> element in conf/[engine]/[host]/ROOT.xml.
This bug is to request a single mechanism for specifying the default context
regardless of if it's physically defined inside or outside of the server.xml
file.
The dev mailing list indicated this is also how Tomcat 6 works.
Also bug# 40823 is a stop-gap solution to callout the workaround.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 40824] - Tomcat doesn't honor use of an empty string ("") to define the default web application for a Host outside server.xml
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40824>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=40824
markt@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
------- Additional Comments From markt@apache.org 2006-10-27 18:24 -------
The current behaviour is as designed and will not be changed.
It unfortunate that "context path" is easily confused with the path parameter of
the context element when they mean very different things. The new documentation
hopefully makes this clearer.
Suggested improvements to the documentation are always welcomed.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org