You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by nohacks <ph...@gmail.com> on 2009/04/08 22:04:48 UTC

Tomcat 6 Cluster with Apache 2.2.9 issues

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


-- 
View this message in context: http://www.nabble.com/Tomcat-6-Cluster-with-Apache-2.2.9-issues-tp22957994p22957994.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: Tomcat 6 Cluster with Apache 2.2.9 issues

Posted by nohacks <ph...@gmail.com>.

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

-- 
View this message in context: http://www.nabble.com/Tomcat-6-Cluster-with-Apache-2.2.9-issues-tp22957994p22960190.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: Tomcat 6 Cluster with Apache 2.2.9 issues

Posted by Rainer Jung <ra...@kippdata.de>.
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat 6 Cluster with Apache 2.2.9 issues

Posted by nohacks <ph...@gmail.com>.
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.
~

-- 
View this message in context: http://www.nabble.com/Tomcat-6-Cluster-with-Apache-2.2.9-issues-tp22957994p22959874.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: Tomcat 6 Cluster with Apache 2.2.9 issues

Posted by Jorge Medina <jm...@e-dialog.com>.
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:philipfwilson@gmail.com] 
Sent: Wednesday, April 08, 2009 4:11 PM
To: users@tomcat.apache.org
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


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


Re: Tomcat 6 Cluster with Apache 2.2.9 issues

Posted by nohacks <ph...@gmail.com>.
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-tp22957994p22958289.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