tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: Seperate tomcats - one apache
Date Tue, 01 Apr 2003 18:10:01 GMT

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 <gsexton@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


Mime
View raw message