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/11 17:56:04 UTC

DO NOT REPLY [Bug 50074] New: Mutli-Level Contexts

https://issues.apache.org/bugzilla/show_bug.cgi?id=50074

           Summary: Mutli-Level Contexts
           Product: Tomcat 5
           Version: 5.5.31
          Platform: PC
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: keith.johnson@dmgfederal.com


I recented upgraded from 5.5.20 to 5.5.31 and it appears that multi-level
contexts aren't working for example foo#bar.xml extracts to the /foo#bar
directory under webapps.  In 5.5.20 it correctly extracted to /foo/bar
directory.  I tried a couple of previous version without success 5.5.27 &
5.5.30.

Keith

-- 
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 50074] Mutli-Level Contexts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50074

--- Comment #2 from Keith Johnson <ke...@dmgfederal.com> 2010-10-11 13:28:50 EDT ---
Based on the Tomcat 5.5-7.0 documentation, individual files (with a ".xml"
extension) in the $CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The
name of the file (less the .xml extension) will be used as the context path.
Multi-level context paths may be defined using #, e.g. foo#bar.xml for a
context path of /foo/bar. The default web application may be defined by using a
file called ROOT.xml. 

If that interpretation is incorrect where is it correctly documented ?

-- 
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 50074] Mutli-Level Contexts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50074

Chuck Caldarale <ch...@unisys.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Chuck Caldarale <ch...@unisys.com> 2010-10-11 13:02:23 EDT ---
(In reply to comment #0)
> I recented upgraded from 5.5.20 to 5.5.31 and it appears that multi-level
> contexts aren't working for example foo#bar.xml extracts to the /foo#bar
> directory under webapps.  In 5.5.20 it correctly extracted to /foo/bar
> directory.

Your interpretation is incorrect.  The previously observed behavior in 5.5.20
was accidental and erroneous; the current behavior is the intended one.

-- 
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 50074] Mutli-Level Contexts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50074

--- Comment #4 from Keith Johnson <ke...@dmgfederal.com> 2010-10-11 15:52:02 EDT ---
Understood, thanks for the clarification!

-- 
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 50074] Mutli-Level Contexts

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=50074

--- Comment #3 from Chuck Caldarale <ch...@unisys.com> 2010-10-11 13:47:08 EDT ---
(In reply to comment #2)
> Based on the Tomcat 5.5-7.0 documentation, individual files (with a ".xml"
> extension) in the $CATALINA_BASE/conf/[enginename]/[hostname]/ directory. The
> name of the file (less the .xml extension) will be used as the context path.
> Multi-level context paths may be defined using #, e.g. foo#bar.xml for a
> context path of /foo/bar. The default web application may be defined by using a
> file called ROOT.xml. 
> 
> If that interpretation is incorrect where is it correctly documented ?

What you stated in comment #2 is correct.  Perhaps you're confusing context
path (that which appears in a URL, using a slash as a separator) with file
system path (which uses # as separator).  Note that expansion of a .war into a
directory is done solely for the convenience of Tomcat; nothing in the servlet
spec requires such action, so there should not be any expectations about the
naming conventions used in such an expansion.

 - Chuck

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