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

           Summary: Reactivate path attribute for Context
           Product: Tomcat 5
           Version: 5.5.9
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P4
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: [EMAIL PROTECTED]


In Tomcat 4, when dropping an xml file in the webapps/ directory (or 
$CATALINA_HOME/conf/[enginename]/[hostname]/ in 5.5), the context path for the 
deployed application was taken from the "path" attribute of the "Context" 
element contained in the file.

In Tomcat 5.5, it is no longer the case as the context path is infered from the 
file name (cf. http://jakarta.apache.org/tomcat/tomcat-5.5-
doc/config/context.html)

I think it was a great feature allowing to switch webapps version quickly:
* I have a directory where I have multiple context xml files referencing 
different version of a single webapp: mywebapp-1.0.xml mywebapp-2.0.xml (they 
use the same context path, but *not* the same docBase)
* When I need to test a given version I just copy the associated xml file to 
the tomcat $CATALINA_HOME/webapps directory and the correct webapp version is 
used.

In Tomcat 5.5 the process is more difficult as I have to rename the file.

Another advantage is that I could name webapps related to each other with the 
same prefix (with no relation at all with the context paths).

Could it be possible to re-allow the "path" attribute to override the name 
infered from the file name?

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to