What Marc said is probably true but what about all these poor users who don't use javascrip, hum?
I also noticed that with Tomcat, the new context deployment method does not work: if you put your context.xml into META-INF, it's supposed to load it, and it works... except when your context is ROOT!... why? don't ask me but I'll check bugzilla if there's a bug on this. Marc's second suggestion will work however. 1. from tomcat install root (CATALINA_HOME), create a folder called "context" 2. edit context.xml and put "docbase="${catalina.home}\context\yourwebapp.war" as an attribut of the <context> element 3. move your war file to the "context" folder (don't leave a copy of the war in webapps!) 4. rename your context.xml to ROOT.xml, move this file to conf/catalina/localhost (or whatever your host is) 5. start Tomcat -- you should get what you want HTH Nic On 28/03/06, Farrow, Marc <[EMAIL PROTECTED]> wrote: > > Here is a work around if you want to use it. Change your default page > (usually index.html or index.jsp) under your "/" context (ROOT) to > redirect > to the http://domain.com/Application using Javascript. > > > <html> > <head> > window.location.replace(http://domain.com/Application); > </head> > </html> > > > OR > > You can just set up your stuff in your default context and run it out of > root. > > -----Original Message----- > From: Gamigin Gamigin [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 28, 2006 1:03 PM > To: users@tomcat.apache.org > Subject: How to set a default or root application? > > I deploy an application to my Tomcat server via .war file. It works > perfectly but I must use: > http://domain.com/Application > > I want to make this the default application so the user can use: > http://domain.com > > My hosting provider told me to edit the conf/server.xml and find this > element: > <Context path="" docBase="path-to-soap\webapps" > reloadable="true"></Context> > And change docBase to this: > <Context path="" docBase="path-to-soap\webapps\Application" > reloadable="true"></Context> > > This started to work, but my JNDI JDBC data source that I defined in > META-INF/context.xml wasn't available. I worked around that, by > manually creating the global JNDI resource on Tomcat. Then I got a > ClassNotFoundException exception. This same application works > perfectly when I use the full URL (http://domain.com/Application). > What is wrong? Is there a better way to make a specified application > the default? > > --------------------------------------------------------------------- > 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] > >