You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Steve Harris <sh...@myra.com> on 2003/04/01 18:46:11 UTC

Seperate tomcats - one apache

Hi all,

I'm having some fun with some applications supplied to us that may be
casuing a problem wiht each other, i.e. one application may be causing the
whole tocat environment to fail - thus affecting the others.

I'm toying with the idea of trying to run a signle apache but with
multiple tomcats - one per application. Does anyone have any views on this
?

Cheers - Steve


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


Re: Seperate tomcats - one apache

Posted by John Turner <to...@johnturner.com>.
I've been trying to do it for over a day, with mod_jk, with no luck.

I think at this point I will have to use 2 complete installs of Tomcat...up 
'til now I have trying to use one install of Tomcat but two instances via 
CATALINA_BASE.

John

On Tue, 01 Apr 2003 08:46:11 -0800 (PST), Steve Harris <sh...@myra.com> 
wrote:

> Hi all,
>
> I'm having some fun with some applications supplied to us that may be
> casuing a problem wiht each other, i.e. one application may be causing 
> the
> whole tocat environment to fail - thus affecting the others.
>
> I'm toying with the idea of trying to run a signle apache but with
> multiple tomcats - one per application. Does anyone have any views on 
> this
> ?
>
> Cheers - Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


Re: Seperate tomcats - one apache

Posted by John Turner <to...@johnturner.com>.
It doesn't work at all.  Believe me, I've now spent 14 hours trying to make 
it work.

I posted yesterday exactly what I have done so far ("Help with one Apache, 
mod_jk, two Tomcats, no load balancing").

http://host1.com:8080 -> Tomcat 1 works great
http://host2.com:8081 -> Tomcat 2 works great

Apache Virtual Host host1 (http://host1.com) -> Tomcat 1
Apache Virtual Host host2 (http://host2.com) -> ALSO Tomcat 1

I've tried many variations of workers.properties, even setting up load- 
balanced workers as suggesting in http://www.ubeans.com/tomcat (private JVM 
section) even though I don't want load-balancing at all.

mod_jk.log:

[Mon Mar 31 16:48:59 2003]  [mod_jk.c (471)]: agsp=80 agsn=host2.com 
hostn=host2.com shostn=host1.com cbsport=0 sport=0
[Mon Mar 31 16:48:59 2003]  [jk_ajp_common.c (1391)]: Into 
jk_worker_t::get_endpoint
...
...
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (460)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (477)]: Attempting to map 
URI '/images/A2_incent.jpg'
[Mon Mar 31 16:48:59 2003]  [jk_uri_worker_map.c (502)]: 
jk_uri_worker_map_t::map_uri_to_worker, Found a context match tomcat1 -> /
[Mon Mar 31 16:48:59 2003]  [mod_jk.c (1277)]: Into handler r->proxyreq=0 
r->handler=jakarta-servlet r->notes=1578240 worker=tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (132)]: Into 
wc_get_worker_for_name tomcat1
[Mon Mar 31 16:48:59 2003]  [jk_worker.c (136)]: wc_get_worker_for_name, 
done  found a worker

I don't know about you, but line number one there looks pretty fishy to 
me...I have no idea what "shostn" means (shared host name?), but it 
shouldn't be "host1", it should be "host2", and the worker found should be 
"tomcat2", not "tomcat1".

I am definitely open to suggestions on how to make this work, but I can 
tell you that I am no stranger to setting up mod_jk (different port 
numbers, etc), and at this time this DOES NOT work for me with Apache .43, 
Tomcat 4.1.18, Solaris 8, and built-from-source mod_jk.

John

On Tue, 1 Apr 2003 10:46:38 -0700, George Sexton <gs...@mhsoftware.com> 
wrote:

> I routinely run via the CATALINA_BASE method for multiple instances and 
> have
> no problems.
>
> Using mod_jk, all you have to do is define the connectors to be on 
> different
> ports, and then configure each servlet engine to run mod_jk on a 
> different
> port.
>
> -----Original Message-----
> From: Steve Harris [mailto:sharris@myra.com]
> Sent: Tuesday, April 01, 2003 9:46 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Seperate tomcats - one apache
>
>
> Hi all,
>
> I'm having some fun with some applications supplied to us that may be
> casuing a problem wiht each other, i.e. one application may be causing 
> the
> whole tocat environment to fail - thus affecting the others.
>
> I'm toying with the idea of trying to run a signle apache but with
> multiple tomcats - one per application. Does anyone have any views on 
> this
> ?
>
> Cheers - Steve
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

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


RE: Seperate tomcats - one apache

Posted by George Sexton <gs...@mhsoftware.com>.
I routinely run via the CATALINA_BASE method for multiple instances and have
no problems.

Using mod_jk, all you have to do is define the connectors to be on different
ports, and then configure each servlet engine to run mod_jk on a different
port.

-----Original Message-----
From: Steve Harris [mailto:sharris@myra.com]
Sent: Tuesday, April 01, 2003 9:46 AM
To: tomcat-user@jakarta.apache.org
Subject: Seperate tomcats - one apache


Hi all,

I'm having some fun with some applications supplied to us that may be
casuing a problem wiht each other, i.e. one application may be causing the
whole tocat environment to fail - thus affecting the others.

I'm toying with the idea of trying to run a signle apache but with
multiple tomcats - one per application. Does anyone have any views on this
?

Cheers - Steve


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


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