tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Refereing to a Container Attribute in a Nested Container
Date Thu, 19 Feb 2009 18:50:57 GMT
-----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