Thanks everyone. Much appreciated.

I think part of my confusion was that when I create a directory to
deploy into, I have to remove subdirectories from the appBase because
it finds them first there before it looks in the ROOT directory I'm
deploying into.

This may be as intended but it was somewhat confusing when I've only
ever used the old style deployment I picked up years ago.



On 3/6/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
> From: Patrick Lee [mailto:[EMAIL PROTECTED]
> Subject: Re: Tomcat 6 - includes broken
>
> <Host name="www.something.com." debug="0" appBase="c:/wwwroot/path/"
>        unpackWARs="true" autoDeploy="true"
>        xmlValidation="false" xmlNamespaceAware="false">
>     <Context path="" docBase="." debug="0" privileged="true"/>
> </Host>
>
> This is what's not working. Additionally, If I do set the docBase to
> something else then it serves paths under the root relative to the
> appBase, not the docBase.

Which is exactly what it's supposed to do.  A docBase of "." is never,
never correct.  As others have pointed out, you should stop trying to
force use of the old deployment mechanism, and use the current, more
robust one.

1) Remove the <Context> element from server.xml.

2) Remove the existing webapps/ROOT directory.

3) Deploy your app in C:/wwwroot/path/ROOT.war (or C:/wwwroot/path/ROOT,
if expanded).

4) Create a META-INF/context.xml file in your webapp containing a
<Context> element with only a privileged="true" attribute (if you really
need even that).  You may alternatively place this <Context> element in
conf/Catalina/www.something.com/ROOT.xml, if desired.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to