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/01/09 16:53:52 UTC

DO NOT REPLY [Bug 38198] - When using context xml definitions standalone file, tomcat wrongly uses the file name instead the context path definition

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=38198>.
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=38198





------- Additional Comments From bugzilla@schoenhaber.de  2006-01-09 16:53 -------
(In reply to comment #0)
> When deploying an application in Tomcat 5.5 (been observed in 5.5.8 but not in  
> 5.0.30), using a context definition xml file, such as  
> <TOMCAT_CONF>/Catalina/hostname/myapp.xml, tomcat ignores the context path  
> definition in the XML file (i.e. <context path="/some/path">) and instead uses  
> the file name (i.e. "myapp" in this case) as the path.  

RTFM. Especially the section in
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
that states:
"The value of this field [path] must not be set except when statically defining
a Context in server.xml, as it will be infered from the filenames used for
either the .xml context file or the docBase."

> This makes it impossible to create complex server configurations where  
> applications are hosted not under the root of the server, in addition to being  
> confusing, counter-intuitive and just plain wrong.  

No, your statement is plain wrong. If you want to set the context path to
"/some/path", name the XML file containing the Context definition "some#path.xml".

BTW: Just doing a quick glance over Tomcat's documention, I didn't find the
latter mentioned. So it might be a good idea to add this to
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html
or
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Automatic%20Application%20Deployment



-- 
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