tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: ROOT.xml problem
Date Fri, 01 Jun 2012 19:43:15 GMT
-----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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message