tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Virtual Hosts and manager application.
Date Mon, 24 Aug 2009 19:17:12 GMT
Hash: SHA1


On 8/24/2009 12:18 PM, Wesley Acheson wrote:
> Comments below.  The one thing that may be unusual about my server.xml (see
> initial email) is the fact that server.xml is specifying docRoots that are
> parellel with my tomcat installation not in a sub folder. I've a sneaking
> suspicion that this would fix the problem but I don't want to do that.

Aah, yes. This:

>       <Host name="localhost"  appBase="webapps"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false">
>       </Host>

Plus this:

> <?xml version="1.0" encoding="UTF-8"?>
> <Context docBase="${catalina.home}/webapps/manager"
>          privileged="true" antiResourceLocking="false"
> antiJARLocking="false">
> </Context>

Will lead to confusion. Your apps will be deployed at least twice, maybe
more. Why don't you use just use the manager webapp from where it gets
installed by default (in CATALINA_HOME/server/webapps/manager)?

> Honestly my first version of the manager.xml was a simple copy out of a host
> created with host manager.  I thought this was the easiest way to get a
> working config, without being limited to the limitations of host-manager
> (Hosts not persisted after restart). It had those attributes so my file
> does.

I would use the manager.xml file unchanged, except for its path (and
possibly file name), of course.

> I'm trying to deploy 3 managers but I focused on 1,

Okay. I so you should have (as you already do):

>       <Host name=""
>             appbase="/home/servers/cashier.westest"
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false">
>       </Host>

Then, copy the stock manager.xml into

Wouldn't that do it?

> I'm pretty sure its this one because I get the logged messages when I change
> the manager.xml Its the only one being reloaded in that instance.  Or am I
> wrong with that?

It's probably being loaded twice because autoDeploy="true" for your
"localhost" <Host>.

- -chris
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message