You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by shivanic <sh...@gmail.com> on 2010/10/18 11:38:51 UTC

Common war file and multiple tomcat instances

I have read through the link suggesting not to go for using one physical
location of war for multiple instance of tomcat.

http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html
http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html 

My question is : If we have a simple jsp's that use taglib and db - what
could be the possible issues if we use one common location for multiple
tomcat servers?

 




-- 
View this message in context: http://old.nabble.com/Common-war-file-and-multiple-tomcat-instances-tp29988694p29988694.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


RE: Common war file and multiple tomcat instances

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: shivanic [mailto:shivani.chandna@gmail.com] 
> Subject: Re: Common war file and multiple tomcat instances

> That was informative 

Note that you must use expanded .war files, due to the reasons André explained previously.

> Could you please confirm what is the disadvantage of
> using the path attribute in the configuration file of
> the application?

It's not a disadvantage - it's illegal.  The path attribute is only allowed when the <Context> element is in server.xml, which is strongly discouraged.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.


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


Re: Common war file and multiple tomcat instances

Posted by shivanic <sh...@gmail.com>.

Thanks Chris ! That was informative - Could you please confirm what is the
disadvantage of using the path attribute in the configuration file of the
application?

Regards
Shivani



Christopher Schultz-2 wrote:
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Shivanic,
> 
> On 10/18/2010 5:38 AM, shivanic wrote:
>> I have read through the link suggesting not to go for using one physical
>> location of war for multiple instance of tomcat.
>> 
>> http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html
> 
> Note that this was a warning of using a /network/ share to share WAR
> files. Using a single WAR file with multiple deployments should not be a
> problem, as long as you do things properly. Specifically, use a file in
> CATALINA_BASE/conf/[servicename]/[hostname]/[appname].xml that contains
> a docBase pointing to your WAR file, and does /not/ have a "path"
> attribute set. Then, make sure your WAR file is outside of the Tomcat
> installation directory: otherwise, you risk additional, unintended
> deployments.
> 
>> My question is : If we have a simple jsp's that use taglib and db - what
>> could be the possible issues if we use one common location for multiple
>> tomcat servers?
> 
> The content of the WAR file is largely irrelevant: it's the location of
> the WAR file that counts. As long as you use local storage, you should
> be fine.
> 
> - -chris
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> 
> iEYEARECAAYFAky8RDkACgkQ9CaO5/Lv0PD47gCePnOANzl1JD15EZyqcIDjsXCN
> EZMAnjIa1mB2E+5IhBoXOpEeuGtgMFNc
> =Ib2/
> -----END PGP SIGNATURE-----
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Common-war-file-and-multiple-tomcat-instances-tp29988694p29990177.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Common war file and multiple tomcat instances

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Shivanic,

On 10/18/2010 5:38 AM, shivanic wrote:
> I have read through the link suggesting not to go for using one physical
> location of war for multiple instance of tomcat.
> 
> http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html

Note that this was a warning of using a /network/ share to share WAR
files. Using a single WAR file with multiple deployments should not be a
problem, as long as you do things properly. Specifically, use a file in
CATALINA_BASE/conf/[servicename]/[hostname]/[appname].xml that contains
a docBase pointing to your WAR file, and does /not/ have a "path"
attribute set. Then, make sure your WAR file is outside of the Tomcat
installation directory: otherwise, you risk additional, unintended
deployments.

> My question is : If we have a simple jsp's that use taglib and db - what
> could be the possible issues if we use one common location for multiple
> tomcat servers?

The content of the WAR file is largely irrelevant: it's the location of
the WAR file that counts. As long as you use local storage, you should
be fine.

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

iEYEARECAAYFAky8RDkACgkQ9CaO5/Lv0PD47gCePnOANzl1JD15EZyqcIDjsXCN
EZMAnjIa1mB2E+5IhBoXOpEeuGtgMFNc
=Ib2/
-----END PGP SIGNATURE-----

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


Re: Common war file and multiple tomcat instances

Posted by shivanic <sh...@gmail.com>.
The war file is extracted, The application has jsp's and servlets / tag
library usage along with DB connectivity.
DB Connectivity is done through the resource reference in the conf file that
is separate per tomcat instance.


awarnier wrote:
> 
> If the multiple tomcat servers are all configured to "unpack WARs", will
> they not all 
> start trying to do that at the same time and step on eachother's feet ?
> 


-- 
View this message in context: http://old.nabble.com/Common-war-file-and-multiple-tomcat-instances-tp29988694p29989220.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Re: Common war file and multiple tomcat instances

Posted by André Warnier <aw...@ice-sa.com>.
shivanic wrote:
> I have read through the link suggesting not to go for using one physical
> location of war for multiple instance of tomcat.
> 
> http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html
> http://www.mail-archive.com/users@tomcat.apache.org/msg73906.html 
> 
> My question is : If we have a simple jsp's that use taglib and db - what
> could be the possible issues if we use one common location for multiple
> tomcat servers?
> 
If the multiple tomcat servers are all configured to "unpack WARs", will they not all 
start trying to do that at the same time and step on eachother's feet ?


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