tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Shilling" <jshill...@scihealth.com>
Subject RE: Refereing to a Container Attribute in a Nested Container
Date Thu, 19 Feb 2009 19:10:48 GMT
>> I am setting this up so that each virtual host shares the same 
>> document base (i.e., it is the same application in different 
>> contexts).
>
>No, you're not. You have two different appBase attributes set. If they contain the same
applications then great; but you're not >sharing a document base.

docBase is not an attribute of the Host element.  It is an attribute of the Context element
and it was being set in the example I gave.

CIO
SciHealth
2700 Northeast Expressway, Ste C-200
Atlanta, GA 30345


-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Thursday, February 19, 2009 1:51 PM
To: Tomcat Users List
Subject: Re: Refereing to a Container Attribute in a Nested Container

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John,

To add to Chuck's comments...

On 2/19/2009 12:47 PM, John Shilling wrote:
>       <Host name="sample1" appBase="SampleApps1" 
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false"/>
>       <Host name="sample2" appBase="SampleApps2" 
>             unpackWARs="true" autoDeploy="true"
>             xmlValidation="false" xmlNamespaceAware="false"/>

[snip]

> I am setting this up so that each virtual host shares the same
> document base (i.e., it is the same application in different
> contexts).

No, you're not. You have two different appBase attributes set. If they
contain the same applications then great; but you're not sharing a
document base.

> I need a way to access directories within my appBase so that I can place dynamically
created content within those directories.

This is an accident waiting to happen: if Tomcat reloads your web
application, you could lose all that content. Also, Tomcat has a funny
way of not recognizing files created after the webapp has been deployed.
My recommendation would be to store those files somewhere /outside/ of
the deployment directory.

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkmdqhEACgkQ9CaO5/Lv0PDdgQCfV342kZ1cZzPS/UIxI+9oH7Td
n3sAn0/JYMBSOBxsSHLsJgcGEICZuP5m
=H9uN
-----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