tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: How to setup webapp specific parameter for virtual host in Tomcat?
Date Fri, 04 Mar 2011 20:24:45 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Joe,

On 3/2/2011 4:20 PM, joe.k@centrum.cz wrote:
> thank you for your reply. Based on your answer I tried to remove docBase attribute 
> in ROOT.xml and it started to work ! :-) 
> 
> The thing why it didn't come to my mind before is the fact that I thought 
> docBase attribute was mandatory attribute, as long as it's marked bold in Tomcat's 
> documentation: 
> 
> http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Common_Attributes 

docBase actually is required when the webapp is not being deployed via
an auto-deployed .WAR file (or manually deployed using the manager app).

The problem, now, is that you run the risk of double-deploying your ROOT
webapp: once because it is being auto-deployed and once because you are
explicitly deploying it.

The best thing for you to do is to remove the <Context> from your
server.xml file and instead modify the file
CATALINA_BASE/conf/[Service]/my.domain.name/ROOT.xml to include your
<Parameter> entries.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk1xSo0ACgkQ9CaO5/Lv0PA57QCfSIAxVC8QlqySXvu1eV+dCjjF
H+AAn2CmDnf0wB+PdpaiOWaYD3AYKTcd
=fdB/
-----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