The way I am handling this, and it is probably not very clean, but it works for me, is to define an index.html file in webapps/ROOT with this content:
<html> <meta http-equiv="Refresh" content="0; url=/app"> </html> On 12/7/06, kkus <[EMAIL PROTECTED]> wrote:
I am using Tomcat 5.5.20 and my app in XP. I need set my app as default context so I will only use url localhost:8080 instead of localhost:8080/app. The way I found is to set a <context> in <Host> of server.xml. But this led to my app loaded twice when it started. Meanwhile 5.5.20 has discouraged use of <context> in <Host>, which is correct for my app since it has its own context.xml under meta-inf folder. The only line I added in server.xml is as below(<Context> only), <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Context path="appfuse" docBase="appfuse" debug="0" reloadable="true"/> My context.xml is, <Context path="/appfuse" debug="99" reloadable="true" antiJARLocking="true" antiResourceLocking="false"/> Can anyone give me some hints? Thanks! -- View this message in context: http://www.nabble.com/How-to-set-app-as-default-context-in-Tomcat--tf2776569.html#a7745991 Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]