Re: changing default ROOT webapp in Tomcat 6.0.18
SpY0o2 wrote: hello, I've been trying to deploy an application to Tomcat 6.0.18. I would like to make it my default ROOT app (without renaming the app to ROOT), so that I can access my app by entering http://localhost:8080/ instead of http://localhost:8080/myApps Thanks. The easiest possible thing is to put an element in server.xml file in /conf directory. So, put your application inside Host element in server.xml file by using a Context element. this will be as follows... . . . Host .. Context path= docBase=/testApp /Context /Host this will make your testApp as ROOT application and you can access by http://localhost:8080. hope this help... --pulak -- View this message in context: http://www.nabble.com/changing-default-ROOT-webapp-in-Tomcat-6.0.18-tp22133382p25889772.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: changing default ROOT webapp in Tomcat 6.0.18
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pulak, On 10/14/2009 8:03 AM, pulak wrote: SpY0o2 wrote: hello, I've been trying to deploy an application to Tomcat 6.0.18. I would like to make it my default ROOT app (without renaming the app to ROOT), so that I can access my app by entering http://localhost:8080/ instead of http://localhost:8080/myApps Thanks. The easiest possible thing is to put an element in server.xml file in /conf directory. It would be better to move the webapp's META-INF/context.xml file into conf/[service]/[hostname]/ROOT.xml. That way, you don't have to modify server.xml for any reason. Just remember to put your WAR file /outside/ of any of Tomcat's auto-deploy webapps directories (such as 'webapps' by default) or your webapp will be deployed twice. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrWFXkACgkQ9CaO5/Lv0PD7mgCfel/jyhKUBnv/gXK1nK94HKVg SMEAoIbK6LWIXfHwf4rz70ROVdAUWi/a =AgLA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: changing default ROOT webapp in Tomcat 6.0.18
Hi, I have been watching this thread since I am interested in how to do this. I have a small web site using just html images css so I do not use a WAR for deployment just replace/add/delete the files. So would modifying the server.xml be the recommended method? Thanks, -Tony --- On Wed, 10/14/09, Christopher Schultz ch...@christopherschultz.net wrote: From: Christopher Schultz ch...@christopherschultz.net Subject: Re: changing default ROOT webapp in Tomcat 6.0.18 To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, October 14, 2009, 12:16 PM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pulak, On 10/14/2009 8:03 AM, pulak wrote: SpY0o2 wrote: hello, I've been trying to deploy an application to Tomcat 6.0.18. I would like to make it my default ROOT app (without renaming the app to ROOT), so that I can access my app by entering http://localhost:8080/ instead of http://localhost:8080/myApps Thanks. The easiest possible thing is to put an element in server.xml file in /conf directory. It would be better to move the webapp's META-INF/context.xml file into conf/[service]/[hostname]/ROOT.xml. That way, you don't have to modify server.xml for any reason. Just remember to put your WAR file /outside/ of any of Tomcat's auto-deploy webapps directories (such as 'webapps' by default) or your webapp will be deployed twice. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrWFXkACgkQ9CaO5/Lv0PD7mgCfel/jyhKUBnv/gXK1nK94HKVg SMEAoIbK6LWIXfHwf4rz70ROVdAUWi/a =AgLA -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: changing default ROOT webapp in Tomcat 6.0.18
From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: Re: changing default ROOT webapp in Tomcat 6.0.18 So would modifying the server.xml be the recommended method? Modifying server.xml is NEVER the recommended method. The best way is to simply name the directory ROOT, and you're done. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: changing default ROOT webapp in Tomcat 6.0.18
So if I create a directory named ROOT on say a network drive (or even a logical drive on the same server as Tomcat) Tomcat will find it without any modification to any config files? -Tony --- On Wed, 10/14/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Caldarale, Charles R chuck.caldar...@unisys.com Subject: RE: changing default ROOT webapp in Tomcat 6.0.18 To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, October 14, 2009, 12:45 PM From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: Re: changing default ROOT webapp in Tomcat 6.0.18 So would modifying the server.xml be the recommended method? Modifying server.xml is NEVER the recommended method. The best way is to simply name the directory ROOT, and you're done. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: changing default ROOT webapp in Tomcat 6.0.18
From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: RE: changing default ROOT webapp in Tomcat 6.0.18 So if I create a directory named ROOT on say a network drive (or even a logical drive on the same server as Tomcat) Tomcat will find it without any modification to any config files? Can't put it in just any arbitrary location; it must be under the Host appBase directory. If you want your webapp in a completely arbitrary place, you should use the conf/Catalina/[host]/ROOT.xml approach, with that file containing a Context element with a docBase attribute pointing to the arbitrary location. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: changing default ROOT webapp in Tomcat 6.0.18
Perfect. I was just specifying another location because some users/companies may have a standard for site files location that does not match out of the box settings for Tomcat. Best Regards, -Tony --- On Wed, 10/14/09, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Caldarale, Charles R chuck.caldar...@unisys.com Subject: RE: changing default ROOT webapp in Tomcat 6.0.18 To: Tomcat Users List users@tomcat.apache.org Date: Wednesday, October 14, 2009, 12:57 PM From: Tony Anecito [mailto:adanec...@yahoo.com] Subject: RE: changing default ROOT webapp in Tomcat 6.0.18 So if I create a directory named ROOT on say a network drive (or even a logical drive on the same server as Tomcat) Tomcat will find it without any modification to any config files? Can't put it in just any arbitrary location; it must be under the Host appBase directory. If you want your webapp in a completely arbitrary place, you should use the conf/Catalina/[host]/ROOT.xml approach, with that file containing a Context element with a docBase attribute pointing to the arbitrary location. - 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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: changing default ROOT webapp in Tomcat 6.0.18
SpY0o2 wrote: hello, I've been trying to deploy an application to Tomcat 6.0.18. I would like to make it my default ROOT app (without renaming the app to ROOT), so that I can access my app by entering http://localhost:8080/ instead of http://localhost:8080/myApps Renaming the WAR to ROOT.war is the simplest but if you really don't want to do that then you have the following options: 1. Place your WAR outside of CATALINA_BASE/webapps. It must be outside to prevent double deployment. Place context file named ROOT.xml in CATALINA_BASE/conf/engine name/host name that has a docBase element that points to your WAR. 2. Leave your WAR in CATALINA_BASE/webapps. Turn off autoDeploy *and* deployOnStartup in your Host element in server.xml. Explicitly define *all* Contexts in server.xml, specifying both path and docBase. You must define your Contexts in server.xml as this option disables all the auto-deploy mechanisms. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: changing default ROOT webapp in Tomcat 6.0.18
SpY0o2 wrote: hello, I've been trying to deploy an application to Tomcat 6.0.18. I would like to make it my default ROOT app (without renaming the app to ROOT), so that I can access my app by entering http://localhost:8080/ instead of http://localhost:8080/myApps See http://wiki.apache.org/tomcat/HowTo, number 38. ..and about 50 earlier threads in this same list on the same subject in the last 6 months. But I'm not quite sure what you mean by not naming it ROOT. Why would it bother you, since it would anyway respond to http://localhost:8080/ ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: changing default ROOT webapp in Tomcat 6.0.18
Mark Thomas wrote: SpY0o2 wrote: hello, I've been trying to deploy an application to Tomcat 6.0.18. I would like to make it my default ROOT app (without renaming the app to ROOT), so that I can access my app by entering http://localhost:8080/ instead of http://localhost:8080/myApps Renaming the WAR to ROOT.war is the simplest but if you really don't want to do that then you have the following options: 1. Place your WAR outside of CATALINA_BASE/webapps. It must be outside to prevent double deployment. Place context file named ROOT.xml in CATALINA_BASE/conf/engine name/host name that has a docBase element that points to your WAR. 2. Leave your WAR in CATALINA_BASE/webapps. Turn off autoDeploy *and* deployOnStartup in your Host element in server.xml. Explicitly define *all* Contexts in server.xml, specifying both path and docBase. You must define your Contexts in server.xml as this option disables all the auto-deploy mechanisms. Should I add #1 and #2 to the FAQ-HowTo #38, or is it better to leave it as it is now (only mentioning the simple option 0) ? It seems to me that option #2 above is looking for trouble, no ? (at least on this forum) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: changing default ROOT webapp in Tomcat 6.0.18
André Warnier wrote: Mark Thomas wrote: SpY0o2 wrote: hello, I've been trying to deploy an application to Tomcat 6.0.18. I would like to make it my default ROOT app (without renaming the app to ROOT), so that I can access my app by entering http://localhost:8080/ instead of http://localhost:8080/myApps Renaming the WAR to ROOT.war is the simplest but if you really don't want to do that then you have the following options: 1. Place your WAR outside of CATALINA_BASE/webapps. It must be outside to prevent double deployment. Place context file named ROOT.xml in CATALINA_BASE/conf/engine name/host name that has a docBase element that points to your WAR. 2. Leave your WAR in CATALINA_BASE/webapps. Turn off autoDeploy *and* deployOnStartup in your Host element in server.xml. Explicitly define *all* Contexts in server.xml, specifying both path and docBase. You must define your Contexts in server.xml as this option disables all the auto-deploy mechanisms. Should I add #1 and #2 to the FAQ-HowTo #38, or is it better to leave it as it is now (only mentioning the simple option 0) ? Please do. It seems to me that option #2 above is looking for trouble, no ? (at least on this forum) It works for some people. It wouldn't be the way I'd do it but it depends on your requirements. Personally, I'd always choose #1 over #2. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: changing default ROOT webapp in Tomcat 6.0.18
Mark Thomas wrote: Should I add #1 and #2 to the FAQ-HowTo #38, or is it better to leave it as it is now (only mentioning the simple option 0) ? Please do. done. I haven't tried any of that stuff myself, so could someone make a quick accuracy check ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: changing default ROOT webapp in Tomcat 6.0.18
André Warnier wrote: Mark Thomas wrote: Should I add #1 and #2 to the FAQ-HowTo #38, or is it better to leave it as it is now (only mentioning the simple option 0) ? Please do. done. I haven't tried any of that stuff myself, so could someone make a quick accuracy check ? I made one minor tweak - you should not set path in ROOT.xml. The only time path should be set is when the Context element is in server.xml Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org