Chris, Your suggestion worked! Simply renaming my app to ROOT and getting rid of the stuff I added to server.xml proved to be a better strategy.
I now have it working as desired with the following context.xml, deployed with my app in ROOT.war <Context path="" docBase="ROOT" etc.> </Context> (Note: the "etc." refers to the other attributes that are particular to my app and aren't relevant to this thread). Thanks! Alex Chris wrote: >In Tomcat 5.5, it is recommended to use context.xml files in WAR files >(or exploded WAR files in directories) placed directly into the Engine's >"appBase" directory. >You should not have to specify any <Context> elements in server.xml. >If you want to re-name the current ROOT webapp to something else, then >simply rename the directory to suit your needs. Name your own webapp >ROOT and you should be good to go (note that case is significant, even >on case-insensitive file systems like *FAT and NTFS). On Sun, Mar 30, 2008 at 4:01 PM, Alex Epshteyn <[EMAIL PROTECTED]> wrote: > Hi, > > Suppose I have the following in my server.xml: > > <Host name="localhost" appBase="webapps" unpackWARs="true" > autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> > <!-- Serve foo from the root dir of the Tomcat server --> > <Context path="" docBase="foo" debug="0" reloadable="false" cookies="false" > /> > <!-- Serve the root webapp from the /root context path --> > <Context path="/root" docBase="ROOT" debug="0" /> > </Host> > > This causes Tomcat to deploy two instances of the "foo" webapp - one > as path "/foo/" and one as "/". I only want one instance deployed at > "/". Any ideas? > > This is the only strategy I've found for replacing the ROOT app with > my own. I suppose I could just manually stop the "/foo/" app in the > manager, but that wouldn't help in situations where my server might > reboot without my knowledge (I'm using a shared VPS server). I wasn't > able to find any Host or Context configuration elements that would > prevent the "/foo/" app from automatically starting on server start > without also preventing the "/" app from being started. I'm using > Tomcat 5.5.26 on Linux. > > Thanks, > Alex > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]