Quantcast

Tomcat 6 Cluster with Apache 2.2.9 issues

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Tomcat 6 Cluster with Apache 2.2.9 issues

nohacks
Hi All,

I have been working with this problem for 3 weeks now and can't seem to figure it out. I have a cluster of 3 Tomcat servers using mod_jk/1.2.27 and Apache 2.2.9 and Tomcat 6.0.18

I am seeing these errors in my mod_jk.log.

[Tue Apr 07 17:57:11.829 2009] [29020:3075438336] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.loadbalancer.balanced_workers' is deprecated - please check the documentation for the correct replacement.
[Tue Apr 07 17:57:11.830 2009] [29020:3075438336] [info] init_jk::mod_jk.c (3018): mod_jk/1.2.27 initialized
[Tue Apr 07 17:57:11.830 2009] [29020:3075438336] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing.
[Tue Apr 07 17:57:11.830 2009] [29020:3075438336] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing.
[Tue Apr 07 17:57:11.912 2009] [29021:3075438336] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.loadbalancer.balanced_workers' is deprecated - please check the documentation for the correct replacement.
[Tue Apr 07 17:57:11.912 2009] [29021:3075438336] [info] init_jk::mod_jk.c (3018): mod_jk/1.2.27 initialized
[Tue Apr 07 17:57:11.912 2009] [29021:3075438336] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing.
[Tue Apr 07 17:57:11.912 2009] [29021:3075438336] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing.
[Wed Apr 08 09:06:09.510 2009] [29022:3075438336] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri HTTP/1.1 is invalid. Uri must start with /
[Wed Apr 08 11:04:03.917 2009] [29056:3075438336] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Apr 08 11:06:36.917 2009] [29025:3075438336] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Apr 08 11:06:37.917 2009] [29058:3075438336] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Apr 08 11:06:40.917 2009] [29595:3075438336] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
[Wed Apr 08 13:25:48.917 2009] [29045:3075438336] [warn] map_uri_to_worker_ext::jk_uri_worker_map.c (961): Uri * is invalid. Uri must start with /
~

I am having issues with my jsessionId throwing a 404 page not found error. I have Apache returning the user to login again. Then the second time the login works and no jsessionId 404.

Do you think this is the problem in my logs? Is the issue something else?

Thanks
Phil

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tomcat 6 Cluster with Apache 2.2.9 issues

nohacks
This is my workers.properties file too.
Thanks
Phil


# workers.properties
ps=/

# list the workers by name
worker.list=tomcat1,tomcat2,tomcat3,loadbalancer

#
# Specifies the load balance factor when used with
# a load balancing worker.
# Note:
#  ----> lbfactor must be > 0
#  ----> Low lbfactor means less work done by the worker.

# ------------------------
# First tomcat server
# ------------------------
worker.tomcat1.port=18009
worker.tomcat1.host=192.168.70.101
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=33

# ------------------------
# Second tomcat server
# ------------------------
worker.tomcat2.port=19009
worker.tomcat2.host=192.168.70.102
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=33

# ------------------------
# Third tomcat server
# ------------------------
worker.tomcat3.port=20009
worker.tomcat3.host=192.168.70.103
worker.tomcat3.type=ajp13
worker.tomcat3.lbfactor=33

# -----------------------
# Load Balancer worker
# ------------------------
#
# The loadbalancer (type lb) worker performs weighted round-robin
# load balancing with sticky sessions.
# Note:
#  ----> If a worker dies, the load balancer will check its state
#        once in a while. Until then all work is redirected to peer
#        worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3

#
# END workers.properties
#

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Tomcat 6 Cluster with Apache 2.2.9 issues

jordiang
Remove your tomcat workers from the worker.list, you only need to
reference the balance worker here:

worker.list=loadbalancer

your load balancer worker then refers to the tomcat workers:

worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3


-Jorge

-----Original Message-----
From: nohacks [mailto:[hidden email]]
Sent: Wednesday, April 08, 2009 4:11 PM
To: [hidden email]
Subject: Re: Tomcat 6 Cluster with Apache 2.2.9 issues


This is my workers.properties file too.
Thanks
Phil


# workers.properties
ps=/

# list the workers by name
worker.list=tomcat1,tomcat2,tomcat3,loadbalancer

#
# Specifies the load balance factor when used with # a load balancing
worker.
# Note:
#  ----> lbfactor must be > 0
#  ----> Low lbfactor means less work done by the worker.

# ------------------------
# First tomcat server
# ------------------------
worker.tomcat1.port=18009
worker.tomcat1.host=192.168.70.101
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=33

# ------------------------
# Second tomcat server
# ------------------------
worker.tomcat2.port=19009
worker.tomcat2.host=192.168.70.102
worker.tomcat2.type=ajp13
worker.tomcat2.lbfactor=33

# ------------------------
# Third tomcat server
# ------------------------
worker.tomcat3.port=20009
worker.tomcat3.host=192.168.70.103
worker.tomcat3.type=ajp13
worker.tomcat3.lbfactor=33

# -----------------------
# Load Balancer worker
# ------------------------
#
# The loadbalancer (type lb) worker performs weighted round-robin # load
balancing with sticky sessions.
# Note:
#  ----> If a worker dies, the load balancer will check its state
#        once in a while. Until then all work is redirected to peer
#        worker.
worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1,tomcat2,tomcat3

#
# END workers.properties
#


--
View this message in context:
http://www.nabble.com/Tomcat-6-Cluster-with-Apache-2.2.9-issues-tp229579
94p22958289.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Tomcat 6 Cluster with Apache 2.2.9 issues

nohacks
thanks for the reply.

I updated my workers.properties file to

worker.list=loadbalancer


still get this in my mod_jk.log.

[Wed Apr 08 17:21:46.840 2009] [29811:3075569408] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.loadbalancer.balanced_workers' is deprecated - please check the documentation for the correct replacement.
[Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [info] init_jk::mod_jk.c (3018): mod_jk/1.2.27 initialized
[Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing.
[Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing.
[Wed Apr 08 17:21:46.924 2009] [29812:3075569408] [warn] jk_map_validate_property::jk_map.c (410): The attribute 'worker.loadbalancer.balanced_workers' is deprecated - please check the documentation for the correct replacement.
[Wed Apr 08 17:21:46.924 2009] [29812:3075569408] [info] init_jk::mod_jk.c (3018): mod_jk/1.2.27 initialized
[Wed Apr 08 17:21:46.924 2009] [29812:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing.
[Wed Apr 08 17:21:46.924 2009] [29812:3075569408] [error] uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with name 'ajp13' in uri map post processing.
~
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tomcat 6 Cluster with Apache 2.2.9 issues

Rainer Jung-3
On 08.04.2009 23:23, nohacks wrote:

> thanks for the reply.
>
> I updated my workers.properties file to
>
> worker.list=loadbalancer
>
>
> still get this in my mod_jk.log.
>
> [Wed Apr 08 17:21:46.840 2009] [29811:3075569408] [warn]
> jk_map_validate_property::jk_map.c (410): The attribute
> 'worker.loadbalancer.balanced_workers' is deprecated - please check the
> documentation for the correct replacement.

Look for the replacement of "balanced_workers" in
   http://tomcat.apache.org/connectors-doc/reference/workers.html

> [Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [error]
> uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with
> name 'ajp13' in uri map post processing.
> [Wed Apr 08 17:21:46.841 2009] [29811:3075569408] [error]
> uri_worker_map_ext::jk_uri_worker_map.c (505): Could not find worker with
> name 'ajp13' in uri map post processing.

It seems you haven't successfully defined any JkMount(s) or
uriworkermap.properties. If there are no such, then a builtin automatic
worker named "ajp13" is assumed, which is not configured in your
workers.properties. Don't configure an additional worker with that name,
instead try to explain "JkMount" or uriworkermap.properties (both are
nearly equivalent, you can choose whatever you like more). They are
needed to explain, which URLs Apache httpd should forward via which
worker (or not forward at all).


Also remove the ps line from workers.properties. It has no meaning.
Furthermore look at the page
   http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html
to learn more about timeouts you should use in the configuration.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Tomcat 6 Cluster with Apache 2.2.9 issues

nohacks

Look for the replacement of "balanced_workers" in
   http://tomcat.apache.org/connectors-doc/reference/workers.html

Also remove the ps line from workers.properties. It has no meaning.
Furthermore look at the page
   http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html
to learn more about timeouts you should use in the configuration.

===
Thanks great links. I will check them out now.

Phil
Loading...