You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jeremy Nix <Je...@sfsltd.com> on 2006/10/25 21:41:03 UTC

Running single webapp across multiple hosts

I have a webapps that are utilized on 2 different domains.  Currently, 
I'm managing it by deploying separate versions (2 context files pointing 
to 2 separate installs of the webapp.  What I would like is to simplify 
this so that a single instance of my webapp is running, but both 
connectors/hosts are using it.  I'm sure there are many ways of doing 
this.  For instance, I did try just installing a single instance and 
having the 2 context.xml files pointing to the same directory.  That 
seems to work fine...except for the log4j logging I have set up within 
my app (file doesn't seem to roleover, it just resets each day).  Are 
there other options available?

Thanks for any help.

-- 

__________________________
Jeremy Nix
Senior Application Developer
Southwest Financial Services, Ltd.


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


Re: Running single webapp across multiple hosts

Posted by Martin Gainty <mg...@hotmail.com>.
Jeremy-

From tomcat
Context descriptors allow defining all aspects and configuration parameters of a Context, such as 
naming resources and 
session manager configuration. 
It should be noted that the docBase specified in the Context element can refer to either the .WAR or the directory

so if your resources are exactly the same and session config info is the same and docBase is the same then go ahead and combine contexts
If they are different dont combine the context.xml file

M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its 
contents
----- Original Message ----- 
From: "Jeremy Nix" <Je...@sfsltd.com>
To: <us...@tomcat.apache.org>
Sent: Wednesday, October 25, 2006 3:41 PM
Subject: Running single webapp across multiple hosts


>I have a webapps that are utilized on 2 different domains.  Currently, 
> I'm managing it by deploying separate versions (2 context files pointing 
> to 2 separate installs of the webapp.  What I would like is to simplify 
> this so that a single instance of my webapp is running, but both 
> connectors/hosts are using it.  I'm sure there are many ways of doing 
> this.  For instance, I did try just installing a single instance and 
> having the 2 context.xml files pointing to the same directory.  That 
> seems to work fine...except for the log4j logging I have set up within 
> my app (file doesn't seem to roleover, it just resets each day).  Are 
> there other options available?
> 
> Thanks for any help.
> 
> -- 
> 
> __________________________
> Jeremy Nix
> Senior Application Developer
> Southwest Financial Services, Ltd.
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
>

Re: can not deploy application .war in Tomcat

Posted by Martin Gainty <mg...@hotmail.com>.
netstat -a will determine if Tomcat socket is already bound
in which case you will have to stop the server

M-
This e-mail communication and any attachments may contain confidential and privileged information for the use of the 
designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received
this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its 
contents
----- Original Message ----- 
From: "David Smith" <dn...@cornell.edu>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Thursday, October 26, 2006 8:50 PM
Subject: Re: can not deploy application .war in Tomcat


> There has to be more to this error than that.  The exception cited has 
> nothing to do with deploying a .war.  Please provide a lot more detail 
> -- ie os, tomcat version, a complete stack trace, what you did leading 
> up to this error, ...
> 
> --David
> 
> Shuwen wrote:
>> Hi,
>> Our own application uses Tomcat as web server. When tomcat is started, it should unzip and deploy application .war files. However, we got error:
>>
>> <<<<<<<<<<<<<<<
>> Caused by: java.net.ConnectException: Connection timed out
>> at java.net.PlainSocketImpl.socketConnect(Native Method)
>> ....
>>   
>>
>> I searched on internet and only found that it could be related to firewall configuration on the machine. Does anyone know what is the possible cause?
>>
>>
>> Many thanks in advance,
>>
>> Shuwen
>>
>>  
>> ---------------------------------
>> Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
>>   
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
>

Re: can not deploy application .war in Tomcat

Posted by David Smith <dn...@cornell.edu>.
There has to be more to this error than that.  The exception cited has 
nothing to do with deploying a .war.  Please provide a lot more detail 
-- ie os, tomcat version, a complete stack trace, what you did leading 
up to this error, ...

--David

Shuwen wrote:
> Hi,
> Our own application uses Tomcat as web server. When tomcat is started, it should unzip and deploy application .war files. However, we got error:
>
> <<<<<<<<<<<<<<<
> Caused by: java.net.ConnectException: Connection timed out
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> ....
>   
>
> I searched on internet and only found that it could be related to firewall configuration on the machine. Does anyone know what is the possible cause?
>
>
> Many thanks in advance,
>
> Shuwen
>
>  		
> ---------------------------------
> Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
>   


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


can not deploy application .war in Tomcat

Posted by Shuwen <we...@yahoo.com>.
Hi,
Our own application uses Tomcat as web server. When tomcat is started, it should unzip and deploy application .war files. However, we got error:

<<<<<<<<<<<<<<<
Caused by: java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
....
>>>>>>>>>>>>>>>

I searched on internet and only found that it could be related to firewall configuration on the machine. Does anyone know what is the possible cause?


Many thanks in advance,

Shuwen

 		
---------------------------------
Stay in the know. Pulse on the new Yahoo.com.  Check it out. 

can not deploy application .war in Tomcat

Posted by Shuwen <we...@yahoo.com>.
Hi,
    Our own application uses Tomcat as web server.  When tomcat is started, it should unzip and deploy application .war files.  However, we got error:
   
  <<<<<<<<<<<<<<<
  Caused by: java.net.ConnectException: Connection timed out
  at java.net.PlainSocketImpl.socketConnect(Native Method)
  ....
  >>>>>>>>>>>>>>>
   
  I searched on internet and only found that it could be related to firewall configuration on the machine.  Does anyone know what is the possible cause?
   
   
  Many thanks in advance,
   
  Shuwen

 				
---------------------------------
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.

RE: Running single webapp across multiple hosts

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Jeremy Nix [mailto:Jeremy.Nix@sfsltd.com] 
> Subject: Re: Running single webapp across multiple hosts
> 
> Only question is can I have 2 different connectors
> (which validate against their own individual certs) 
> run off a single host with multiple aliases?

I think so, but I've never tried it.  There is an address attribute of
the <Connector> element that appears to be what you want.  This would
allow you to associate multiple secure connectors with the same host,
each having their own SSL config, including certificates.

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Running single webapp across multiple hosts

Posted by Jeremy Nix <Je...@sfsltd.com>.
Simple concept that I didn't think about.  Only question is can I have 2 
different connectors (which validate against their own individual certs) 
run off a single host with multiple aliases?

__________________________
Jeremy Nix
Senior Application Developer
Southwest Financial Services, Ltd.



Caldarale, Charles R wrote:
>> From: Jeremy Nix [mailto:Jeremy.Nix@sfsltd.com] 
>> Subject: Running single webapp across multiple hosts
>>
>> What I would like is to simplify this so that a single instance
>> of my webapp is running, but both connectors/hosts are using it.
>>     
>
> I don't think that's possible unless you employ a filter/valve or a
> dummy webapp to forward to the real one.
>
>   
>> For instance, I did try just installing a single instance and 
>> having the 2 context.xml files pointing to the same directory.
>>     
>
> That still gets you two instances, even though the docBase is the same.
>
>   
>> Are there other options available?
>>     
>
> Why do you have two <Host> elements?  Could you use just one with an
> alias attribute?
> http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Host%20Name%20A
> liases
>
>  - 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 start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>   

RE: Running single webapp across multiple hosts

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Jeremy Nix [mailto:Jeremy.Nix@sfsltd.com] 
> Subject: Running single webapp across multiple hosts
> 
> What I would like is to simplify this so that a single instance
> of my webapp is running, but both connectors/hosts are using it.

I don't think that's possible unless you employ a filter/valve or a
dummy webapp to forward to the real one.

> For instance, I did try just installing a single instance and 
> having the 2 context.xml files pointing to the same directory.

That still gets you two instances, even though the docBase is the same.

> Are there other options available?

Why do you have two <Host> elements?  Could you use just one with an
alias attribute?
http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Host%20Name%20A
liases

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org