RE: default webapp not understanding
From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: default webapp not understanding I am having trouble understanding what is meant by the default webapp. (It would help if you'd tell us what Tomcat level you're running...) For 5.5.x, the default webapp is the one located in webapps/ROOT.war or the webapps/ROOT directory. Can I somehow configure this to go to the above $TOMCAT_HOME/webapps/mywebapp/index.html? Deploy your webapp in webapps/ROOT, not webapps/mywebapp. I get confused when the doc states that the entry in the host must also have a context entry? Can anyone clarify that. Where does it say that? The current doc states that you _can_ nest Context tags inside Host, not that you must. Putting Context tags in server.xml is strongly discouraged these days, but not all of the doc has caught up to that fact. Here from the docs Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine. That attribute for simple Tomcat installations is localhost, which you already have. Nothing to do with contexts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: default webapp not understanding
5.5x on xp. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:46 AM To: Tomcat Users List Subject: RE: default webapp not understanding From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: default webapp not understanding I am having trouble understanding what is meant by the default webapp. (It would help if you'd tell us what Tomcat level you're running...) For 5.5.x, the default webapp is the one located in webapps/ROOT.war or the webapps/ROOT directory. Can I somehow configure this to go to the above $TOMCAT_HOME/webapps/mywebapp/index.html? Deploy your webapp in webapps/ROOT, not webapps/mywebapp. I get confused when the doc states that the entry in the host must also have a context entry? Can anyone clarify that. Where does it say that? The current doc states that you _can_ nest Context tags inside Host, not that you must. Putting Context tags in server.xml is strongly discouraged these days, but not all of the doc has caught up to that fact. Here from the docs Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine. That attribute for simple Tomcat installations is localhost, which you already have. Nothing to do with contexts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: default webapp not understanding
Sorry, I didn't catch the other one. Tomcat 5.5x on xp If I deploy the webapp in ROOT, then the structure would look like this: $TOMCAT_HOME/webapps/root/mywebapp. And the index.html would still live in root .. isn't that correct. So I would still need a way to go from the root/index.html to the mywebapp/index.html correct? This is where it gets confusing. Thanks, -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:46 AM To: Tomcat Users List Subject: RE: default webapp not understanding From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: default webapp not understanding I am having trouble understanding what is meant by the default webapp. (It would help if you'd tell us what Tomcat level you're running...) For 5.5.x, the default webapp is the one located in webapps/ROOT.war or the webapps/ROOT directory. Can I somehow configure this to go to the above $TOMCAT_HOME/webapps/mywebapp/index.html? Deploy your webapp in webapps/ROOT, not webapps/mywebapp. I get confused when the doc states that the entry in the host must also have a context entry? Can anyone clarify that. Where does it say that? The current doc states that you _can_ nest Context tags inside Host, not that you must. Putting Context tags in server.xml is strongly discouraged these days, but not all of the doc has caught up to that fact. Here from the docs Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine. That attribute for simple Tomcat installations is localhost, which you already have. Nothing to do with contexts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: default webapp not understanding
Hi, no, you must delete whole the original contents of the existing directory webapps/ROOT and deploy your own ROOT.war web application. Be careful. The `ROOT' word is case sensitive. The default URL mapping is: http://[machine]:[port]/[context]/[servlet]/ where machine is currently localhost, port is 8080 by default context is in the context.xml file and usualy is the same as the web application name servlet: it's defined in web.xml servlet-mapping tag If you deploy your application as ROOT application, the context path will be only `/' (slash). Chuck explains it to me (thank you Chuck!) one month before. Look into the mailing-list history. Hope to help you Have a nice day! PETR On 2/14/06, Scott Purcell [EMAIL PROTECTED] wrote: Sorry, I didn't catch the other one. Tomcat 5.5x on xp If I deploy the webapp in ROOT, then the structure would look like this: $TOMCAT_HOME/webapps/root/mywebapp. And the index.html would still live in root .. isn't that correct. So I would still need a way to go from the root/index.html to the mywebapp/index.html correct? This is where it gets confusing. Thanks, -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 10:46 AM To: Tomcat Users List Subject: RE: default webapp not understanding From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: default webapp not understanding I am having trouble understanding what is meant by the default webapp. (It would help if you'd tell us what Tomcat level you're running...) For 5.5.x, the default webapp is the one located in webapps/ROOT.war or the webapps/ROOT directory. Can I somehow configure this to go to the above $TOMCAT_HOME/webapps/mywebapp/index.html? Deploy your webapp in webapps/ROOT, not webapps/mywebapp. I get confused when the doc states that the entry in the host must also have a context entry? Can anyone clarify that. Where does it say that? The current doc states that you _can_ nest Context tags inside Host, not that you must. Putting Context tags in server.xml is strongly discouraged these days, but not all of the doc has caught up to that fact. Here from the docs Exactly one of the Hosts associated with each Engine MUST have a name matching the defaultHost attribute of that Engine. That attribute for simple Tomcat installations is localhost, which you already have. Nothing to do with contexts. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: default webapp not understanding
From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: RE: default webapp not understanding If I deploy the webapp in ROOT, then the structure would look like this: $TOMCAT_HOME/webapps/root/mywebapp. No - get rid of the mywebapp idea. Your app needs to be deployed AS root, not under it. Your app replaces the existing contents of webapps/ROOT. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: default webapp not understanding
This has been my confusion ... when I put the war file there, it creates the mywebapp folder structure. Should I of named the webapp root? OK, lets say I take the contents from the war file and place all loose in root ... that should work then, and my problem would be resolved. But if I want another app, lets say devmywebapp, how does that work. As I cannot put two folderless apps together under root. Sorry, possibly I am making things more confusing than they are. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 14, 2006 12:02 PM To: Tomcat Users List Subject: RE: default webapp not understanding From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: RE: default webapp not understanding If I deploy the webapp in ROOT, then the structure would look like this: $TOMCAT_HOME/webapps/root/mywebapp. No - get rid of the mywebapp idea. Your app needs to be deployed AS root, not under it. Your app replaces the existing contents of webapps/ROOT. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: default webapp not understanding
From: Scott Purcell [mailto:[EMAIL PROTECTED] Subject: RE: default webapp not understanding This has been my confusion ... when I put the war file there, it creates the mywebapp folder structure. Should I of named the webapp root? The name of the webapp (what's used on the URI) is determined by its location, not anything else (unless you put a Context tag in server.xml, but you're not supposed to do that). Tomcat special cases the location ROOT, so whatever is stored in there becomes the default application. OK, lets say I take the contents from the war file and place all loose in root ... that should work then, and my problem would be resolved. Easier just to name the file ROOT.war, put it in webapps, and delete the webapps/ROOT directory. But if I want another app, lets say devmywebapp, how does that work. As I cannot put two folderless apps together under root. Each directory or .war file immediately under webapps is a webapp (at the risk of being redundant). This is intended to be a single-level layout - webapps aren't supposed to be nested (although they sometimes seem to work that way). Only one app can be the default (by definition), and that's the one in ROOT (or ROOT.war); put your other app under webapps/devmywebapp or whatever name you want to use. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]