tomcat-users mailing list archives

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

Wes,

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,
> cashier.westest.example.com

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

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

Then, copy the stock manager.xml into
CATALINA_BASE/conf/Catalina/cashier.westest.example.com/

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqS5zgACgkQ9CaO5/Lv0PCmZgCfa4Tc4eoiebsvWAKvo11v0SzX
92IAnAp/RoGEJs7y19STKxJxrWPzPqc8
=ZSwD
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message