tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <>
Subject Re: Docbase inside the host appBasehas been specified, and will be ignored
Date Thu, 01 Jul 2010 08:21:30 GMT
On 01/07/2010 09:06, Ockleford Paul (NHS Connecting for Health) wrote:
> Hi,
> I am using tomcat 5.5 and I have deployed a web application that is working fine, but
on tomcat start up I have noticed this message. I have googled around but it seems most people
see this message and their web app doesn't work, mine does however work fine.
> Does anybody know why I am seeing this message?

Because your config is screwy.  To use a technical term.

> I have an xml file called 'LabCatalogue.xml' in 'apache-tomcat-5.5.23\conf\Catalina\localhost'
that looks like:
> <Context crossContext="true" docBase="c:\\webapps\LabCatalogue" path="/LabCatalogue"
reloadable="true" />
> The web app is set to reloadable because it is currently in development.

The appBase on the Host element is where Tomcat looks for apps to
deploy.  Apps are either a .war or a directory (actually an exploded
.war file).

For an application placed in the appBase, Tomcat will automatically
determine the 'path' it will be deployed at and the 'docBase', so you
don't need to specify either attribute.

You get the warning if the docBase is present and redundant.

As a rule of thumb, setting 'path' or 'docBase' is generally unnecessary
- possibly even 'a bad idea'.


> Thanks,
> Paul
> ********************************************************************************************************************
> This message may contain confidential information. If you are not the intended recipient
please inform the
> sender that you have received the message in error before deleting it.
> Please do not disclose, copy or distribute information in this e-mail or take any action
in reliance on its contents:
> to do so is strictly prohibited and may be unlawful.
> Thank you for your co-operation.
> NHSmail is the secure email and directory service available for all NHS staff in England
and Scotland
> NHSmail is approved for exchanging patient data and other sensitive information with
NHSmail and GSI recipients
> NHSmail provides an email address for your career in the NHS and can be accessed anywhere
> For more information and to find out how you can switch, visit
> ********************************************************************************************************************

View raw message