The ROOT.xml file is in the Catalina/localhost folder Renaming the folder didn't work BTW.
I have the /corda folder located in the /webapps folder I'd like the /corda to be the default app when I don't have the ROOT.xml file, I can go to the browser and enter http://localhost/corda and everything works fine I'd like it to work so that when I enter http://localhost I get the corda as the default. (without having to use the /corda in the URL) I know there is a way to do this without renaming things to ROOT, that's what I'm looking for. How do I set up the ROOT.xml file so that it makes the /corda the default rather than /ROOT as the default? Kevin On Jun 1, 2012, at 12:43 PM, Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Kevin, > > On 6/1/12 2:40 PM, Kevin Marx wrote: >> I am using Tomcat 7 and wish to have my app open as the default >> page. >> >> I have googled and basically found the following recommendation, >> but its not working. Wondering what I am missing? >> >> ROOT.xml code…. > > Where is your ROOT.xml file? > >> <?xml version="1.0" encoding="utf-8"?> >> >> <Context docBase="corda.war" path="/corda" > > Obviously, you don't want the "path" to be set to "/corda" if you want > the context path to actually be "". The "path" attribute is illegal in > this context anyway, so remove it entirely. > > You should probably have the above file in META-INF/context.xml with > *no docBase* inside your WAR file. Just name your WAR file ROOT.war > (note that ROOT must be uppercase, even on a case-insensitive > filesystem like NTFS). > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk/JG1MACgkQ9CaO5/Lv0PClxwCgrpPttvcivjKAG24kqs6VkWA7 > rb0AoLdNxTQQYdhGZgshEfxOUOqUIBmZ > =A0p8 > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > 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]
