Apache2 + Remote Tomcat on Debian

Apache2 + Remote Tomcat on Debian

am 19.10.2007 11:26:57 von Gordon Jahn

Hi everyone,

Short version: Is there an issue with Debian (Etch/Stable), Apache2
(2.2.3), mod_jk (1.2.18 - as in Debian) and Tomcat (5.5) on remote host
where it just doesn't read workers.properties??

I've been running an Ubuntu machine with Apache2 and mod_jk2 fronting a
Tomcat5.5 install on a Sun Solaris 10 box for some time quite successfully.

I've been upgrading the hardware in this machine and have put Debian on
instead of Ubuntu in order that it is in much the same configuration as
our other servers, but I still need a URL mapped to Tomcat on another
host. Because mod_jk2 is now dead, I'm moving to mod_jk in the process
(Debian doesn't have mod_jk2 anyway).

So my workers.properties looks like this:

> # Define 1 real worker using ajp13
> worker.list=imapsworker
> # Set properties for worker1 (ajp13)
> worker.worker1.type=ajp13
> worker.worker1.host=imapsworker
> worker.worker1.port=8009

....and my Virtual Host has the following directives:

> JkWorkersFile /etc/libapache2-mod-jk/workers.properties
> JkShmFile /var/log/apache2/mod_jk.shm
> JkLogFile /var/log/apache2/mod_jk.log
> JkLogLevel trace
>
> JkMount /coremonitor/* imapsworker

....and from my point of view, that's every config step covered exactly.
But when I run, I get the following log output:

> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] do_shm_open::jk_shm.c (248): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] do_shm_open::jk_shm.c (295): Truncated shared memory to 24704
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] do_shm_open::jk_shm.c (327): Initialized shared memory size=24704 free=24576 addr=0xb7671000
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] do_shm_open_lock::jk_shm.c (204): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] do_shm_open_lock::jk_shm.c (234): Opened shared memory lock /var/log/apache2/mod_jk.shm.lock
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] do_shm_open_lock::jk_shm.c (236): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] do_shm_open::jk_shm.c (350): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] init_jk::mod_jk.c (2355): Initialized shm:/var/log/apache2/mod_jk.shm
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (127): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] uri_worker_map_open::jk_uri_worker_map.c (345): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 0
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] uri_worker_map_open::jk_uri_worker_map.c (417): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (143): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] wc_open::jk_worker.c (49): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] build_worker_map::jk_worker.c (230): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] build_worker_map::jk_worker.c (236): creating worker ajp13
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] wc_create_worker::jk_worker.c (121): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] wc_create_worker::jk_worker.c (141): about to create instance ajp13 of ajp13
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] ajp13_worker_factory::jk_ajp13_worker.c (83): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] ajp13_worker_factory::jk_ajp13_worker.c (117): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] wc_create_worker::jk_worker.c (154): about to validate and init ajp13
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] validate::jk_ajp13_worker.c (34): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] ajp_validate::jk_ajp_common.c (1819): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_validate::jk_ajp_common.c (1842): worker ajp13 contact is 'localhost:8009'
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] ajp_validate::jk_ajp_common.c (1848): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] validate::jk_ajp13_worker.c (36): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] init::jk_ajp13_worker.c (47): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] ajp_init::jk_ajp_common.c (1915): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (1965): setting endpoint options:
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (1968): keepalive: 0
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (1972): timeout: -1
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (1976): buffer size: 0
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (1980): pool timeout: 0
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (1984): connect timeout: 0
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (1988): reply timeout: 0
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (1992): prepost timeout: 0
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (1996): recovery options: 0
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_init::jk_ajp_common.c (2000): retries: 2
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] ajp_create_endpoint_cache::jk_ajp_common.c (1871): enter
> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] ajp_create_endpoint_cache::jk_ajp_common.c (1879): setting connection pool size to 25 with min 12
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] ajp_create_endpoint_cache::jk_ajp_common.c (1903): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] ajp_init::jk_ajp_common.c (2032): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] init::jk_ajp13_worker.c (53): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] wc_create_worker::jk_worker.c (192): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] build_worker_map::jk_worker.c (264): exit
> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] wc_open::jk_worker.c (83): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] do_shm_open::jk_shm.c (248): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] do_shm_open::jk_shm.c (295): Truncated shared memory to 24704
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] do_shm_open::jk_shm.c (327): Initialized shared memory size=24704 free=24576 addr=0xb7671000
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] do_shm_open_lock::jk_shm.c (204): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] do_shm_open_lock::jk_shm.c (234): Opened shared memory lock /var/log/apache2/mod_jk.shm.lock
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] do_shm_open_lock::jk_shm.c (236): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] do_shm_open::jk_shm.c (350): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] init_jk::mod_jk.c (2355): Initialized shm:/var/log/apache2/mod_jk.shm
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (127): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] uri_worker_map_open::jk_uri_worker_map.c (345): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 0
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] uri_worker_map_open::jk_uri_worker_map.c (417): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] uri_worker_map_alloc::jk_uri_worker_map.c (143): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] wc_open::jk_worker.c (49): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] build_worker_map::jk_worker.c (230): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] build_worker_map::jk_worker.c (236): creating worker ajp13
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] wc_create_worker::jk_worker.c (121): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] wc_create_worker::jk_worker.c (141): about to create instance ajp13 of ajp13
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] ajp13_worker_factory::jk_ajp13_worker.c (83): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] ajp13_worker_factory::jk_ajp13_worker.c (117): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] wc_create_worker::jk_worker.c (154): about to validate and init ajp13
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] validate::jk_ajp13_worker.c (34): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] ajp_validate::jk_ajp_common.c (1819): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_validate::jk_ajp_common.c (1842): worker ajp13 contact is 'localhost:8009'
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] ajp_validate::jk_ajp_common.c (1848): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] validate::jk_ajp13_worker.c (36): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] init::jk_ajp13_worker.c (47): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] ajp_init::jk_ajp_common.c (1915): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (1965): setting endpoint options:
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (1968): keepalive: 0
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (1972): timeout: -1
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (1976): buffer size: 0
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (1980): pool timeout: 0
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (1984): connect timeout: 0
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (1988): reply timeout: 0
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (1992): prepost timeout: 0
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (1996): recovery options: 0
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_init::jk_ajp_common.c (2000): retries: 2
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] ajp_create_endpoint_cache::jk_ajp_common.c (1871): enter
> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] ajp_create_endpoint_cache::jk_ajp_common.c (1879): setting connection pool size to 25 with min 12
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] ajp_create_endpoint_cache::jk_ajp_common.c (1903): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] ajp_init::jk_ajp_common.c (2032): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] init::jk_ajp13_worker.c (53): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] wc_create_worker::jk_worker.c (192): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] build_worker_map::jk_worker.c (264): exit
> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] wc_open::jk_worker.c (83): exit
> [Fri Oct 19 10:18:39 2007] [11076:2272] [trace] jk_child_init::mod_jk.c (2307): enter
> [Fri Oct 19 10:18:39 2007] [11076:2272] [trace] do_shm_open::jk_shm.c (248): enter
> [Fri Oct 19 10:18:39 2007] [11076:2272] [debug] do_shm_open::jk_shm.c (252): Shared memory is already open
> [Fri Oct 19 10:18:39 2007] [11076:2272] [debug] jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/mod_jk.shm
> [Fri Oct 19 10:18:39 2007] [11076:2272] [debug] jk_child_init::mod_jk.c (2321): Initialized mod_jk/1.2.18
> [Fri Oct 19 10:18:39 2007] [11076:2272] [trace] jk_child_init::mod_jk.c (2322): exit
> [Fri Oct 19 10:18:39 2007] [11078:2272] [trace] jk_child_init::mod_jk.c (2307): enter
> [Fri Oct 19 10:18:39 2007] [11078:2272] [trace] do_shm_open::jk_shm.c (248): enter
> [Fri Oct 19 10:18:39 2007] [11078:2272] [debug] do_shm_open::jk_shm.c (252): Shared memory is already open
> [Fri Oct 19 10:18:39 2007] [11078:2272] [debug] jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/mod_jk.shm
> [Fri Oct 19 10:18:39 2007] [11078:2272] [debug] jk_child_init::mod_jk.c (2321): Initialized mod_jk/1.2.18
> [Fri Oct 19 10:18:39 2007] [11078:2272] [trace] jk_child_init::mod_jk.c (2322): exit
> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] map_uri_to_worker::jk_uri_worker_map.c (481): enter
> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug] map_uri_to_worker::jk_uri_worker_map.c (508): Attempting to map URI '/coremonitor/manager' from 1 maps
> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug] map_uri_to_worker::jk_uri_worker_map.c (520): Attempting to map context URI '/coremonitor/*'
> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug] map_uri_to_worker::jk_uri_worker_map.c (534): Found a wildchar match imapsworker -> /coremonitor/*
> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] map_uri_to_worker::jk_uri_worker_map.c (537): exit
> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] jk_handler::mod_jk.c (1778): enter
> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug] jk_handler::mod_jk.c (1832): Into handler jakarta-servlet worker=imapsworker r->proxyreq=0
> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] wc_get_worker_for_name::jk_worker.c (101): enter
> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug] wc_get_worker_for_name::jk_worker.c (111): did not find a worker imapsworker
> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] wc_get_worker_for_name::jk_worker.c (113): exit
> [Fri Oct 19 10:18:49 2007] [11076:35760] [info] jk_handler::mod_jk.c (1986): Could not find a worker for worker name=imapsworker
> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] jk_handler::mod_jk.c (1989): exit

Now there are a bunch of problems in here - for a start, I haven't
defined a worker names ajp13 and secondly, it's not finding the one I
have defined. So it's using a default - any ideas why?

In case it's the wrong config being used I tried to rename the
workers.properties:

> host:/etc/libapache2-mod-jk# mv workers.properties workers.properties.test
> host:/etc/libapache2-mod-jk# /etc/init.d/apache2 restart
> Forcing reload of web server (apache2)... waiting Syntax error on line 7 of /etc/apache2/sites-enabled/test:
> Can't find the workers file specified
> failed!

So it's definitely pointing at the correct file!

I'm at a complete loss - does anyone know if this is a Debian bug, a bug
in the (slightly old) connector, a config error... anything??!?

Thanks,
Gordon Jahn

Re: Apache2 + Remote Tomcat on Debian

am 19.10.2007 11:35:41 von Gordon Jahn

Hi...

Sorry - made a mess of redoing this this morning for posting - the
workers.properties should, of course, look like this:

> # Define 1 real worker using ajp13
> worker.list=imapsworker
> # Set properties for worker1 (ajp13)
> worker.imapsworker.type=ajp13
> worker.imapsworker.host=soundwave
> worker.imapsworker.port=8009

Everything else I got right, and it still doesn't work!

Cheers,
Gordon

Gordon Jahn wrote:
> Hi everyone,
>
> Short version: Is there an issue with Debian (Etch/Stable), Apache2
> (2.2.3), mod_jk (1.2.18 - as in Debian) and Tomcat (5.5) on remote host
> where it just doesn't read workers.properties??
>
> I've been running an Ubuntu machine with Apache2 and mod_jk2 fronting a
> Tomcat5.5 install on a Sun Solaris 10 box for some time quite successfully.
>
> I've been upgrading the hardware in this machine and have put Debian on
> instead of Ubuntu in order that it is in much the same configuration as
> our other servers, but I still need a URL mapped to Tomcat on another
> host. Because mod_jk2 is now dead, I'm moving to mod_jk in the process
> (Debian doesn't have mod_jk2 anyway).
>
> So my workers.properties looks like this:
>
>> # Define 1 real worker using ajp13
>> worker.list=imapsworker
>> # Set properties for worker1 (ajp13)
>> worker.worker1.type=ajp13
>> worker.worker1.host=imapsworker
>> worker.worker1.port=8009
>
> ...and my Virtual Host has the following directives:
>
>> JkWorkersFile /etc/libapache2-mod-jk/workers.properties
>> JkShmFile /var/log/apache2/mod_jk.shm
>> JkLogFile /var/log/apache2/mod_jk.log
>> JkLogLevel trace
>>
>> JkMount /coremonitor/* imapsworker
>
> ...and from my point of view, that's every config step covered exactly.
> But when I run, I get the following log output:
>
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] do_shm_open::jk_shm.c
>> (248): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] do_shm_open::jk_shm.c
>> (295): Truncated shared memory to 24704
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] do_shm_open::jk_shm.c
>> (327): Initialized shared memory size=24704 free=24576 addr=0xb7671000
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> do_shm_open_lock::jk_shm.c (204): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> do_shm_open_lock::jk_shm.c (234): Opened shared memory lock
>> /var/log/apache2/mod_jk.shm.lock
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> do_shm_open_lock::jk_shm.c (236): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] do_shm_open::jk_shm.c
>> (350): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] init_jk::mod_jk.c
>> (2355): Initialized shm:/var/log/apache2/mod_jk.shm
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> uri_worker_map_alloc::jk_uri_worker_map.c (127): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> uri_worker_map_open::jk_uri_worker_map.c (345): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 0
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> uri_worker_map_open::jk_uri_worker_map.c (417): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> uri_worker_map_alloc::jk_uri_worker_map.c (143): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] wc_open::jk_worker.c
>> (49): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> build_worker_map::jk_worker.c (230): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> build_worker_map::jk_worker.c (236): creating worker ajp13
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> wc_create_worker::jk_worker.c (121): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> wc_create_worker::jk_worker.c (141): about to create instance ajp13 of
>> ajp13
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> ajp13_worker_factory::jk_ajp13_worker.c (83): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> ajp13_worker_factory::jk_ajp13_worker.c (117): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> wc_create_worker::jk_worker.c (154): about to validate and init ajp13
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> validate::jk_ajp13_worker.c (34): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> ajp_validate::jk_ajp_common.c (1819): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_validate::jk_ajp_common.c (1842): worker ajp13 contact is
>> 'localhost:8009'
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> ajp_validate::jk_ajp_common.c (1848): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> validate::jk_ajp13_worker.c (36): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> init::jk_ajp13_worker.c (47): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> ajp_init::jk_ajp_common.c (1915): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (1965): setting endpoint options:
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (1968): keepalive: 0
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (1972): timeout: -1
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (1976): buffer size: 0
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (1980): pool timeout: 0
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (1984): connect timeout: 0
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (1988): reply timeout: 0
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (1992): prepost timeout: 0
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (1996): recovery options: 0
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_init::jk_ajp_common.c (2000): retries: 2
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> ajp_create_endpoint_cache::jk_ajp_common.c (1871): enter
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>> ajp_create_endpoint_cache::jk_ajp_common.c (1879): setting connection
>> pool size to 25 with min 12
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> ajp_create_endpoint_cache::jk_ajp_common.c (1903): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> ajp_init::jk_ajp_common.c (2032): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> init::jk_ajp13_worker.c (53): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> wc_create_worker::jk_worker.c (192): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>> build_worker_map::jk_worker.c (264): exit
>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] wc_open::jk_worker.c
>> (83): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] do_shm_open::jk_shm.c
>> (248): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] do_shm_open::jk_shm.c
>> (295): Truncated shared memory to 24704
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] do_shm_open::jk_shm.c
>> (327): Initialized shared memory size=24704 free=24576 addr=0xb7671000
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> do_shm_open_lock::jk_shm.c (204): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> do_shm_open_lock::jk_shm.c (234): Opened shared memory lock
>> /var/log/apache2/mod_jk.shm.lock
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> do_shm_open_lock::jk_shm.c (236): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] do_shm_open::jk_shm.c
>> (350): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] init_jk::mod_jk.c
>> (2355): Initialized shm:/var/log/apache2/mod_jk.shm
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> uri_worker_map_alloc::jk_uri_worker_map.c (127): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> uri_worker_map_open::jk_uri_worker_map.c (345): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 0
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> uri_worker_map_open::jk_uri_worker_map.c (417): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> uri_worker_map_alloc::jk_uri_worker_map.c (143): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] wc_open::jk_worker.c
>> (49): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> build_worker_map::jk_worker.c (230): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> build_worker_map::jk_worker.c (236): creating worker ajp13
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> wc_create_worker::jk_worker.c (121): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> wc_create_worker::jk_worker.c (141): about to create instance ajp13 of
>> ajp13
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> ajp13_worker_factory::jk_ajp13_worker.c (83): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> ajp13_worker_factory::jk_ajp13_worker.c (117): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> wc_create_worker::jk_worker.c (154): about to validate and init ajp13
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> validate::jk_ajp13_worker.c (34): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> ajp_validate::jk_ajp_common.c (1819): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_validate::jk_ajp_common.c (1842): worker ajp13 contact is
>> 'localhost:8009'
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> ajp_validate::jk_ajp_common.c (1848): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> validate::jk_ajp13_worker.c (36): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> init::jk_ajp13_worker.c (47): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> ajp_init::jk_ajp_common.c (1915): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (1965): setting endpoint options:
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (1968): keepalive: 0
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (1972): timeout: -1
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (1976): buffer size: 0
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (1980): pool timeout: 0
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (1984): connect timeout: 0
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (1988): reply timeout: 0
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (1992): prepost timeout: 0
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (1996): recovery options: 0
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_init::jk_ajp_common.c (2000): retries: 2
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> ajp_create_endpoint_cache::jk_ajp_common.c (1871): enter
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>> ajp_create_endpoint_cache::jk_ajp_common.c (1879): setting connection
>> pool size to 25 with min 12
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> ajp_create_endpoint_cache::jk_ajp_common.c (1903): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> ajp_init::jk_ajp_common.c (2032): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> init::jk_ajp13_worker.c (53): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> wc_create_worker::jk_worker.c (192): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>> build_worker_map::jk_worker.c (264): exit
>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] wc_open::jk_worker.c
>> (83): exit
>> [Fri Oct 19 10:18:39 2007] [11076:2272] [trace]
>> jk_child_init::mod_jk.c (2307): enter
>> [Fri Oct 19 10:18:39 2007] [11076:2272] [trace] do_shm_open::jk_shm.c
>> (248): enter
>> [Fri Oct 19 10:18:39 2007] [11076:2272] [debug] do_shm_open::jk_shm.c
>> (252): Shared memory is already open
>> [Fri Oct 19 10:18:39 2007] [11076:2272] [debug]
>> jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/mod_jk.shm
>> [Fri Oct 19 10:18:39 2007] [11076:2272] [debug]
>> jk_child_init::mod_jk.c (2321): Initialized mod_jk/1.2.18
>> [Fri Oct 19 10:18:39 2007] [11076:2272] [trace]
>> jk_child_init::mod_jk.c (2322): exit
>> [Fri Oct 19 10:18:39 2007] [11078:2272] [trace]
>> jk_child_init::mod_jk.c (2307): enter
>> [Fri Oct 19 10:18:39 2007] [11078:2272] [trace] do_shm_open::jk_shm.c
>> (248): enter
>> [Fri Oct 19 10:18:39 2007] [11078:2272] [debug] do_shm_open::jk_shm.c
>> (252): Shared memory is already open
>> [Fri Oct 19 10:18:39 2007] [11078:2272] [debug]
>> jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/mod_jk.shm
>> [Fri Oct 19 10:18:39 2007] [11078:2272] [debug]
>> jk_child_init::mod_jk.c (2321): Initialized mod_jk/1.2.18
>> [Fri Oct 19 10:18:39 2007] [11078:2272] [trace]
>> jk_child_init::mod_jk.c (2322): exit
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace]
>> map_uri_to_worker::jk_uri_worker_map.c (481): enter
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug]
>> map_uri_to_worker::jk_uri_worker_map.c (508): Attempting to map URI
>> '/coremonitor/manager' from 1 maps
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug]
>> map_uri_to_worker::jk_uri_worker_map.c (520): Attempting to map
>> context URI '/coremonitor/*'
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug]
>> map_uri_to_worker::jk_uri_worker_map.c (534): Found a wildchar match
>> imapsworker -> /coremonitor/*
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace]
>> map_uri_to_worker::jk_uri_worker_map.c (537): exit
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] jk_handler::mod_jk.c
>> (1778): enter
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug] jk_handler::mod_jk.c
>> (1832): Into handler jakarta-servlet worker=imapsworker r->proxyreq=0
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace]
>> wc_get_worker_for_name::jk_worker.c (101): enter
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug]
>> wc_get_worker_for_name::jk_worker.c (111): did not find a worker
>> imapsworker
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace]
>> wc_get_worker_for_name::jk_worker.c (113): exit
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [info] jk_handler::mod_jk.c
>> (1986): Could not find a worker for worker name=imapsworker
>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] jk_handler::mod_jk.c
>> (1989): exit
>
> Now there are a bunch of problems in here - for a start, I haven't
> defined a worker names ajp13 and secondly, it's not finding the one I
> have defined. So it's using a default - any ideas why?
>
> In case it's the wrong config being used I tried to rename the
> workers.properties:
>
>> host:/etc/libapache2-mod-jk# mv workers.properties
>> workers.properties.test
>> host:/etc/libapache2-mod-jk# /etc/init.d/apache2 restart
>> Forcing reload of web server (apache2)... waiting Syntax error on line
>> 7 of /etc/apache2/sites-enabled/test:
>> Can't find the workers file specified
>> failed!
>
> So it's definitely pointing at the correct file!
>
> I'm at a complete loss - does anyone know if this is a Debian bug, a bug
> in the (slightly old) connector, a config error... anything??!?
>
> Thanks,
> Gordon Jahn

Re: Apache2 + Remote Tomcat on Debian

am 22.10.2007 17:07:01 von Gordon Jahn

To complete the story:

It turns out that if you move the following lines out of the VirtualHost
declaration so it's server wide:

> JkWorkersFile /etc/libapache2-mod-jk/workers.properties
> JkShmFile /var/log/apache2/mod_jk.shm
> JkLogFile /var/log/apache2/mod_jk.log
> JkLogLevel trace

....and only leave the JkMount directives inside the VHost then it'll
work as expected.

GJ


Gordon Jahn wrote:
> Hi...
>
> Sorry - made a mess of redoing this this morning for posting - the
> workers.properties should, of course, look like this:
>
>> # Define 1 real worker using ajp13
>> worker.list=imapsworker
>> # Set properties for worker1 (ajp13)
>> worker.imapsworker.type=ajp13
>> worker.imapsworker.host=soundwave
>> worker.imapsworker.port=8009
>
> Everything else I got right, and it still doesn't work!
>
> Cheers,
> Gordon
>
> Gordon Jahn wrote:
>> Hi everyone,
>>
>> Short version: Is there an issue with Debian (Etch/Stable), Apache2
>> (2.2.3), mod_jk (1.2.18 - as in Debian) and Tomcat (5.5) on remote
>> host where it just doesn't read workers.properties??
>>
>> I've been running an Ubuntu machine with Apache2 and mod_jk2 fronting
>> a Tomcat5.5 install on a Sun Solaris 10 box for some time quite
>> successfully.
>>
>> I've been upgrading the hardware in this machine and have put Debian
>> on instead of Ubuntu in order that it is in much the same
>> configuration as our other servers, but I still need a URL mapped to
>> Tomcat on another host. Because mod_jk2 is now dead, I'm moving to
>> mod_jk in the process (Debian doesn't have mod_jk2 anyway).
>>
>> So my workers.properties looks like this:
>>
>>> # Define 1 real worker using ajp13
>>> worker.list=imapsworker
>>> # Set properties for worker1 (ajp13)
>>> worker.worker1.type=ajp13
>>> worker.worker1.host=imapsworker
>>> worker.worker1.port=8009
>>
>> ...and my Virtual Host has the following directives:
>>
>>> JkWorkersFile /etc/libapache2-mod-jk/workers.properties
>>> JkShmFile /var/log/apache2/mod_jk.shm
>>> JkLogFile /var/log/apache2/mod_jk.log
>>> JkLogLevel trace
>>>
>>> JkMount /coremonitor/* imapsworker
>>
>> ...and from my point of view, that's every config step covered
>> exactly. But when I run, I get the following log output:
>>
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] do_shm_open::jk_shm.c
>>> (248): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] do_shm_open::jk_shm.c
>>> (295): Truncated shared memory to 24704
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] do_shm_open::jk_shm.c
>>> (327): Initialized shared memory size=24704 free=24576 addr=0xb7671000
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> do_shm_open_lock::jk_shm.c (204): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> do_shm_open_lock::jk_shm.c (234): Opened shared memory lock
>>> /var/log/apache2/mod_jk.shm.lock
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> do_shm_open_lock::jk_shm.c (236): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] do_shm_open::jk_shm.c
>>> (350): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug] init_jk::mod_jk.c
>>> (2355): Initialized shm:/var/log/apache2/mod_jk.shm
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> uri_worker_map_alloc::jk_uri_worker_map.c (127): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> uri_worker_map_open::jk_uri_worker_map.c (345): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 0
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> uri_worker_map_open::jk_uri_worker_map.c (417): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> uri_worker_map_alloc::jk_uri_worker_map.c (143): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] wc_open::jk_worker.c
>>> (49): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> build_worker_map::jk_worker.c (230): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> build_worker_map::jk_worker.c (236): creating worker ajp13
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> wc_create_worker::jk_worker.c (121): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> wc_create_worker::jk_worker.c (141): about to create instance ajp13
>>> of ajp13
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> ajp13_worker_factory::jk_ajp13_worker.c (83): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> ajp13_worker_factory::jk_ajp13_worker.c (117): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> wc_create_worker::jk_worker.c (154): about to validate and init ajp13
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> validate::jk_ajp13_worker.c (34): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> ajp_validate::jk_ajp_common.c (1819): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_validate::jk_ajp_common.c (1842): worker ajp13 contact is
>>> 'localhost:8009'
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> ajp_validate::jk_ajp_common.c (1848): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> validate::jk_ajp13_worker.c (36): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> init::jk_ajp13_worker.c (47): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> ajp_init::jk_ajp_common.c (1915): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1965): setting endpoint options:
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1968): keepalive: 0
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1972): timeout: -1
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1976): buffer size: 0
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1980): pool timeout: 0
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1984): connect timeout: 0
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1988): reply timeout: 0
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1992): prepost timeout: 0
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1996): recovery options: 0
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_init::jk_ajp_common.c (2000): retries: 2
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> ajp_create_endpoint_cache::jk_ajp_common.c (1871): enter
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [debug]
>>> ajp_create_endpoint_cache::jk_ajp_common.c (1879): setting connection
>>> pool size to 25 with min 12
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> ajp_create_endpoint_cache::jk_ajp_common.c (1903): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> ajp_init::jk_ajp_common.c (2032): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> init::jk_ajp13_worker.c (53): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> wc_create_worker::jk_worker.c (192): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace]
>>> build_worker_map::jk_worker.c (264): exit
>>> [Fri Oct 19 10:18:38 2007] [11069:2272] [trace] wc_open::jk_worker.c
>>> (83): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] do_shm_open::jk_shm.c
>>> (248): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] do_shm_open::jk_shm.c
>>> (295): Truncated shared memory to 24704
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] do_shm_open::jk_shm.c
>>> (327): Initialized shared memory size=24704 free=24576 addr=0xb7671000
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> do_shm_open_lock::jk_shm.c (204): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> do_shm_open_lock::jk_shm.c (234): Opened shared memory lock
>>> /var/log/apache2/mod_jk.shm.lock
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> do_shm_open_lock::jk_shm.c (236): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] do_shm_open::jk_shm.c
>>> (350): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug] init_jk::mod_jk.c
>>> (2355): Initialized shm:/var/log/apache2/mod_jk.shm
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> uri_worker_map_alloc::jk_uri_worker_map.c (127): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> uri_worker_map_open::jk_uri_worker_map.c (345): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> uri_worker_map_open::jk_uri_worker_map.c (361): rule map size is 0
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> uri_worker_map_open::jk_uri_worker_map.c (417): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> uri_worker_map_alloc::jk_uri_worker_map.c (143): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] wc_open::jk_worker.c
>>> (49): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> build_worker_map::jk_worker.c (230): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> build_worker_map::jk_worker.c (236): creating worker ajp13
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> wc_create_worker::jk_worker.c (121): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> wc_create_worker::jk_worker.c (141): about to create instance ajp13
>>> of ajp13
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> ajp13_worker_factory::jk_ajp13_worker.c (83): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> ajp13_worker_factory::jk_ajp13_worker.c (117): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> wc_create_worker::jk_worker.c (154): about to validate and init ajp13
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> validate::jk_ajp13_worker.c (34): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> ajp_validate::jk_ajp_common.c (1819): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_validate::jk_ajp_common.c (1842): worker ajp13 contact is
>>> 'localhost:8009'
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> ajp_validate::jk_ajp_common.c (1848): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> validate::jk_ajp13_worker.c (36): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> init::jk_ajp13_worker.c (47): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> ajp_init::jk_ajp_common.c (1915): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1965): setting endpoint options:
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1968): keepalive: 0
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1972): timeout: -1
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1976): buffer size: 0
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1980): pool timeout: 0
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1984): connect timeout: 0
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1988): reply timeout: 0
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1992): prepost timeout: 0
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (1996): recovery options: 0
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_init::jk_ajp_common.c (2000): retries: 2
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> ajp_create_endpoint_cache::jk_ajp_common.c (1871): enter
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [debug]
>>> ajp_create_endpoint_cache::jk_ajp_common.c (1879): setting connection
>>> pool size to 25 with min 12
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> ajp_create_endpoint_cache::jk_ajp_common.c (1903): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> ajp_init::jk_ajp_common.c (2032): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> init::jk_ajp13_worker.c (53): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> wc_create_worker::jk_worker.c (192): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace]
>>> build_worker_map::jk_worker.c (264): exit
>>> [Fri Oct 19 10:18:38 2007] [11070:2272] [trace] wc_open::jk_worker.c
>>> (83): exit
>>> [Fri Oct 19 10:18:39 2007] [11076:2272] [trace]
>>> jk_child_init::mod_jk.c (2307): enter
>>> [Fri Oct 19 10:18:39 2007] [11076:2272] [trace] do_shm_open::jk_shm.c
>>> (248): enter
>>> [Fri Oct 19 10:18:39 2007] [11076:2272] [debug] do_shm_open::jk_shm.c
>>> (252): Shared memory is already open
>>> [Fri Oct 19 10:18:39 2007] [11076:2272] [debug]
>>> jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/mod_jk.shm
>>> [Fri Oct 19 10:18:39 2007] [11076:2272] [debug]
>>> jk_child_init::mod_jk.c (2321): Initialized mod_jk/1.2.18
>>> [Fri Oct 19 10:18:39 2007] [11076:2272] [trace]
>>> jk_child_init::mod_jk.c (2322): exit
>>> [Fri Oct 19 10:18:39 2007] [11078:2272] [trace]
>>> jk_child_init::mod_jk.c (2307): enter
>>> [Fri Oct 19 10:18:39 2007] [11078:2272] [trace] do_shm_open::jk_shm.c
>>> (248): enter
>>> [Fri Oct 19 10:18:39 2007] [11078:2272] [debug] do_shm_open::jk_shm.c
>>> (252): Shared memory is already open
>>> [Fri Oct 19 10:18:39 2007] [11078:2272] [debug]
>>> jk_child_init::mod_jk.c (2311): Attached shm:/var/log/apache2/mod_jk.shm
>>> [Fri Oct 19 10:18:39 2007] [11078:2272] [debug]
>>> jk_child_init::mod_jk.c (2321): Initialized mod_jk/1.2.18
>>> [Fri Oct 19 10:18:39 2007] [11078:2272] [trace]
>>> jk_child_init::mod_jk.c (2322): exit
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace]
>>> map_uri_to_worker::jk_uri_worker_map.c (481): enter
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug]
>>> map_uri_to_worker::jk_uri_worker_map.c (508): Attempting to map URI
>>> '/coremonitor/manager' from 1 maps
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug]
>>> map_uri_to_worker::jk_uri_worker_map.c (520): Attempting to map
>>> context URI '/coremonitor/*'
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug]
>>> map_uri_to_worker::jk_uri_worker_map.c (534): Found a wildchar match
>>> imapsworker -> /coremonitor/*
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace]
>>> map_uri_to_worker::jk_uri_worker_map.c (537): exit
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] jk_handler::mod_jk.c
>>> (1778): enter
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug] jk_handler::mod_jk.c
>>> (1832): Into handler jakarta-servlet worker=imapsworker r->proxyreq=0
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace]
>>> wc_get_worker_for_name::jk_worker.c (101): enter
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [debug]
>>> wc_get_worker_for_name::jk_worker.c (111): did not find a worker
>>> imapsworker
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace]
>>> wc_get_worker_for_name::jk_worker.c (113): exit
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [info] jk_handler::mod_jk.c
>>> (1986): Could not find a worker for worker name=imapsworker
>>> [Fri Oct 19 10:18:49 2007] [11076:35760] [trace] jk_handler::mod_jk.c
>>> (1989): exit
>>
>> Now there are a bunch of problems in here - for a start, I haven't
>> defined a worker names ajp13 and secondly, it's not finding the one I
>> have defined. So it's using a default - any ideas why?
>>
>> In case it's the wrong config being used I tried to rename the
>> workers.properties:
>>
>>> host:/etc/libapache2-mod-jk# mv workers.properties
>>> workers.properties.test
>>> host:/etc/libapache2-mod-jk# /etc/init.d/apache2 restart
>>> Forcing reload of web server (apache2)... waiting Syntax error on
>>> line 7 of /etc/apache2/sites-enabled/test:
>>> Can't find the workers file specified
>>> failed!
>>
>> So it's definitely pointing at the correct file!
>>
>> I'm at a complete loss - does anyone know if this is a Debian bug, a
>> bug in the (slightly old) connector, a config error... anything??!?
>>
>> Thanks,
>> Gordon Jahn