Change ROOT in Tomcat 5.5.9
Hi, I want to change the ROOT context to my web app but not in the Tomcat directory. I tried to define the context in xml file in the conf/Catalina/localhost/ with path= and delete the ROOT folder in The webapp directory but it doesn't work. I would also want to use this root from the JK connector. Please advise, Yuval
Re: Change ROOT in Tomcat 5.5.9
RTFM or should I say rtm so as to be nice. You can't do that with 5.5.X . You must declare the default context in the server.xml http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html Doug - Original Message - From: Yuval Zantkeren [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 3:03 PM Subject: Change ROOT in Tomcat 5.5.9 Hi, I want to change the ROOT context to my web app but not in the Tomcat directory. I tried to define the context in xml file in the conf/Catalina/localhost/ with path= and delete the ROOT folder in The webapp directory but it doesn't work. I would also want to use this root from the JK connector. Please advise, Yuval - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Change ROOT in Tomcat 5.5.9
Parsons Technical Services wrote: You can't do that with 5.5.X . You must declare the default context in the server.xml No, I don't know how you're getting that out of the reference below but there's no requirement to have your context -- any context -- defined in server.xml. Trust me, I've got several 5.5.x machines running right now, and *all* the contexts are defined in either /META-INF/context.xml or $CATALINA_HOME/conf/{engine}/{hostname}/{context}.xml http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html FWIW, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Change ROOT in Tomcat 5.5.9
Hassan, So your context have the path element set to ? Please read what Yuval wrote and what I responded. Yuval wrote with path= . I responded with default context. And you are correct that you do not have to define any context in the server.xml, but if you wish to use the path element set to a value of (defined as default) then you do according to the documentation. 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. The value of this field 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. Doug - Original Message - From: Hassan Schroeder [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Wednesday, April 27, 2005 3:17 PM Subject: Re: Change ROOT in Tomcat 5.5.9 Parsons Technical Services wrote: You can't do that with 5.5.X . You must declare the default context in the server.xml No, I don't know how you're getting that out of the reference below but there's no requirement to have your context -- any context -- defined in server.xml. Trust me, I've got several 5.5.x machines running right now, and *all* the contexts are defined in either /META-INF/context.xml or $CATALINA_HOME/conf/{engine}/{hostname}/{context}.xml http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html FWIW, -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Change ROOT in Tomcat 5.5.9
Parsons Technical Services wrote: Please read what Yuval wrote -- OK, that was: I want to change the ROOT context to my web app but not in the Tomcat directory. I tried to define the context in xml file in the conf/Catalina/localhost/ with path= and delete the ROOT folder in The webapp directory but it doesn't work. :: which I took to mean having a ROOT context in a place other than $CATALINA_HOME/webapps/. And all that takes is to change the docbase attribute of the relevant ROOT.xml file, which has an assumed context path of . Perhaps I misunderstand the OP's goal... -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]