> From: Joe Hansen [mailto:joe.hansen...@gmail.com]
> Subject: Re: Log4j logging doesn't work when a web application is moved
> outside Tomcat/webapps directory
> 
>       <Host name="localhost" appBase="webapps"
>       </Host>
> 
>         <Host name="abc.local" appBase="webapps/abc"

First problem: overlapping appBase settings for multiple <Host> elements.  They 
must be distinct.

>                       <Context path="" docBase="">
>                       </Context>

Second problem: a completely invalid <Context> setting, plus it's in 
server.xml, which is inappropriate.

If you want a second <Host> (do you really need one?), and you want to specify 
a default webapp for it, create a separate directory for that <Host>'s appBase, 
and place the desired webapp in ROOT (or ROOT.war) under that directory.  Note 
that the name ROOT is case-sensitive, even on Windows.

You do not need a <Context> element at all for this simple case.  Should the 
webapp evolve to where it does need a <Context>, it should be placed in 
ROOT/META-INF/context.xml.

 - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to