How to re-direct the default Tomcat home page
Sorry, this is a newbie question. I am using Tomcat 5.0.x. on Linux. I'm having problems redirecting to my webapps home page from the default Tomcat home page ($CATALINA_HOME/webapps/ROOT/index.jsp). Here's mywebapp.xml file that I placed in the $CATALINA_HOME/conf/Catalina/localhost dir: Context path= docBase=/home/mywebapp/mywebapp.war /Context As you can see, the path attribute is an empty string, and according to the Tomcat documentation, this should be the default web application. But instead, the tomcat default home page still appears. How to config the tomcat so that I can get my home page just by typing Http://localhost:8080? Do I have to explicitly undeploy the default tomcat app? Any clues? Thanks.
Re: How to re-direct the default Tomcat home page
Hi Ben Someone already reply to this question in the list very recently. In a nutshell, name your webapp ROOT and deploy it instead of the default ROOT one. However this is neither recommended or standard/good practice. Alternatively you could use apache with mod rewrite or create a servlet filter which you deploy in your ROOT webapp, from there you can do some URL manipulation. Search the list and wikis from jboss you will certainly find other options. Kind Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Ben Wong [EMAIL PROTECTED] Sent: 11.09.2005 14:49 To: tomcat-user@jakarta.apache.org Subject: How to re-direct the default Tomcat home page Sorry, this is a newbie question. I am using Tomcat 5.0.x. on Linux. I'm having problems redirecting to my webapps home page from the default Tomcat home page ($CATALINA_HOME/webapps/ROOT/index.jsp). Here's mywebapp.xml file that I placed in the $CATALINA_HOME/conf/Catalina/localhost dir: Context path= docBase=/home/mywebapp/mywebapp.war /Context As you can see, the path attribute is an empty string, and according to the Tomcat documentation, this should be the default web application. But instead, the tomcat default home page still appears. How to config the tomcat so that I can get my home page just by typing Http://localhost:8080? Do I have to explicitly undeploy the default tomcat app? Any clues? Thanks. * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to re-direct the default Tomcat home page
From the tomcat wiki.. How do I override the default home page loaded by Tomcat? http://wiki.apache.org/jakarta-tomcat/HowTo#head-e82228c43a0ce77f71ebe64fc99ced33c9506ffe Bruno Georges wrote: Hi Ben Someone already reply to this question in the list very recently. In a nutshell, name your webapp ROOT and deploy it instead of the default ROOT one. However this is neither recommended or standard/good practice. Alternatively you could use apache with mod rewrite or create a servlet filter which you deploy in your ROOT webapp, from there you can do some URL manipulation. Search the list and wikis from jboss you will certainly find other options. Kind Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 - Original Message - From: Ben Wong [EMAIL PROTECTED] Sent: 11.09.2005 14:49 To: tomcat-user@jakarta.apache.org Subject: How to re-direct the default Tomcat home page Sorry, this is a newbie question. I am using Tomcat 5.0.x. on Linux. I'm having problems redirecting to my webapps home page from the default Tomcat home page ($CATALINA_HOME/webapps/ROOT/index.jsp). Here's mywebapp.xml file that I placed in the $CATALINA_HOME/conf/Catalina/localhost dir: Context path= docBase=/home/mywebapp/mywebapp.war /Context As you can see, the path attribute is an empty string, and according to the Tomcat documentation, this should be the default web application. But instead, the tomcat default home page still appears. How to config the tomcat so that I can get my home page just by typing Http://localhost:8080? Do I have to explicitly undeploy the default tomcat app? Any clues? Thanks. * * LEGAL DISCLAIMER * This message contains confidential information for * the exclusive use of the person mentioned above. * - 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]
Is it possible to configure the security manager such that my servlet can write into the tomcat-home/logs directory?
Hi -- With tomcat 5.0.16, I could write into that directory (Windows), But with tomcat 5.0.27, I can no longer do so. I've tried all sorts of stuff in catalina.policy, but I still cannot configure it such that I can write my own log file into the logs directory. Thanks Betty
tomcat home
hi there!! i have installed apache web server and tomcat 3.1 on my pc,but when i start tomcat it says tomcat home not found and terminates. can u help me please. if possible can u mail me ur autoexec.bat file as an attachment so that i will see exactly how u have set classpath and path also coz it seems there is also an error if u give some space in the statement where u r setting up the tomcat_home regards, Rohit