Hassan,

I know you are 100% correct...

But using the "$CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml" approach is only one of 4 documented approaches (and the only approach I was able to get working).

Why don't the other three work? And why can't I name the file "context.xml", as the documentation indicates.


----- Original Message ----- From: "Hassan Schroeder" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[email protected]>
Cc: "'Bob Bronson'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 26, 2005 3:46 PM
Subject: Re: Newbie Question: conext.xml



Fritz Schneider wrote:

Welcome, fellow newbie! I struggled with this one also. It turns out that
the <context> element for a root directory MUST be nested inside the <host>
element in server.xml.

No, no, no. That's simply not true. I have multiple installations of 5.5.x systems running and not one has a Context element inside the server.xml.

The dead simplest approach is to put ROOT.xml as

  $CATALINA_HOME/conf/{engine}/{hostname}/ROOT.xml

Within that ROOT.xml file you can specify the docbase as ROOTXXXX
or WhAtTheHeyEver or any appropriate arbitrary path...

The name of the file is a Tomcat convention; the "docbase" *path*
you specify is entirely up to you.


-----Original Message-----
From: Bob Bronson [mailto:[EMAIL PROTECTED]

I want the "document base" directory (the <Context>'s "docBase") for my default web application to be something other than ROOT. Please don't ask, "why?", this is a simplification of a different but equivalent problem.


--
Hassan Schroeder ----------------------------- [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

                          dream.  code.



---------------------------------------------------------------------
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]



Reply via email to