Re: mod_jk: Could not init service for worker

2007-10-16 Thread Rainer Jung

Hans van Zijst wrote:

Hi,

Since I updated my system last week, mod_jk doesn't work anymore. Tomcat starts 
up just fine, no errors or warnings. I checked that the AJP1.3 connector runs, 
it listens on port 8009. Apache runs fine as well, but as soon as I connect to 
the URL I mapped to Tomcat, I get:

[error] jk_handler::mod_jk.c (2223): Could not init service for 
worker=confluence

I did a few traces and found out that no connection is attempted to port 8009, 
so I assume the problem is somewhere in my Apache config. I'm lost for answers 
as I couldn't find anything on the web or in my documentation. Can anyone 
please point me in the right direction?


This is my configuration:

Linux (Debian Lenny, i386)
Tomcat 5.5
Apache 2.2.6
mod_jk 1.2.25


Fine.
What's your platform (OS)?


Here's my workers.properties:

 BEGIN workers.properties 

worker.list=confluence

worker.confluence.host=localhost
worker.confluence.port=8009
worker.confluence.type=ajp13


Very basic, but OK.


 END workers.properties 

I configured mod_jk to log as much as possible. This is what it logs (from startup to 
Internal server error):


What do you mean by Internal server error: this string is not shown 
here. Is there anything in the Apache error log?



 BEGIN mod_jk log 

[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule 
'/confluence=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule 
'/confluence=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.891 2007] [15502:3078624944] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI 
'/confluence/' from 2 maps
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (609): Attempting to map context URI 
'/confluence/*=confluence' source 'JkMount'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (624): Found a wildchar match 
'/confluence/*=confluence'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] jk_handler::mod_jk.c 
(2131): Into handler jakarta-servlet worker=confluence r-proxyreq=0
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_get_worker_for_name::jk_worker.c (115): found a worker confluence
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_maintain::jk_worker.c (323): Maintaining worker confluence
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_get_name_for_type::jk_worker.c (292): Found worker type 'ajp13'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [error] jk_handler::mod_jk.c 
(2223): Could not init service for worker=confluence


this dump doesn't show any lines, which assure, that workers.properties 
got found and read. Usually it should dump the contents of the 
workers.properties in debug log level.


You should find lines close to the following:

[Tue Oct 16 12:08:49.730 2007] [7002:1] [debug] do_shm_open::jk_shm.c 
(402): Truncated shared memory to 28800
[Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] do_shm_open::jk_shm.c 
(447): Initialized shared memory size=28800 free=28672 addr=0xfee5
[Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] 
do_shm_open_lock::jk_shm.c (321): Opened shared memory lock 
/some/path/logs/jk-runtime-status.7002.lock
[Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] init_jk::mod_jk.c 
(2673): Initialized shm:/some/path/logs/jk-runtime-status.7002 (28672 bytes)
[Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] init_jk::mod_jk.c 
(2690): Setting default connection pool max size to 1
[Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] 
jk_map_read_property::jk_map.c (492): Adding property 'worker.list' with 
value 'confluence' to map.
[Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] 

Re: mod_jk: Could not init service for worker

2007-10-16 Thread Hans van Zijst
Hi Rainer,

Thanks for the reply.

 [EMAIL PROTECTED] 16-10-2007 12:11:54 
 This is my configuration:
 
 Linux (Debian Lenny, i386)
 Tomcat 5.5
 Apache 2.2.6
 mod_jk 1.2.25

 Fine.
 What's your platform (OS)?

I run Linux, kernel 2.6.22 on an i386, with Sun's SDK 1.5, update 12 and Tomcat 
5.5.25.


 I configured mod_jk to log as much as possible. This is what it logs (from 
 startup to Internal server error):

 What do you mean by Internal server error: this string is not shown 
 here. Is there anything in the Apache error log?

Ah, sorry. The Internal server error is the message my browser displays when 
I connect. It first asks for the SSL certificate and then forwards me to  the 
mapped URL, but I never get there.

The Apache log doesn't show much:

[Tue Oct 16 11:58:04 2007] [warn] No JkLogFile defined in httpd.conf. Using 
default /var/log/apache2/mod_jk.log
[Tue Oct 16 11:58:04 2007] [warn] No JkShmFile defined in httpd.conf. Using 
default /var/log/apache2/jk-runtime-status
[Tue Oct 16 11:58:04 2007] [info] Loading certificate  private key of 
SSL-aware server
[Tue Oct 16 11:58:04 2007] [info] Configuring server for SSL protocol
[Tue Oct 16 11:58:04 2007] [warn] No JkLogFile defined in httpd.conf. Using 
default /var/log/apache2/mod_jk.log
[Tue Oct 16 11:58:04 2007] [warn] No JkShmFile defined in httpd.conf. Using 
default /var/log/apache2/jk-runtime-status
[Tue Oct 16 11:58:04 2007] [info] Loading certificate  private key of 
SSL-aware server
[Tue Oct 16 11:58:04 2007] [info] Configuring server for SSL protocol
[Tue Oct 16 11:58:04 2007] [notice] Apache/2.2.6 (Debian) mod_jk/1.2.25 
mod_ssl/2.2.6 OpenSSL/0.9.8e configured -- resuming normal operations
[Tue Oct 16 11:58:18 2007] [info] [client 10.15.7.31] Connection to child 64 
established (server xxx.xxx.xxx:443)
[Tue Oct 16 11:58:18 2007] [info] Seeding PRNG with 648 bytes of entropy
[Tue Oct 16 11:58:27 2007] [info] Initial (No.1) HTTPS request received for 
child 64 (server xxx.xxx.xxx:443)
[Tue Oct 16 11:58:27 2007] [info] [client 10.15.7.31] Connection closed to 
child 64 with standard shutdown (server xxx.xxx.xxx:443)

That is, this is Apache's errorlog, the access log only states that Apache was 
started.



  BEGIN mod_jk log 
 
 [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
 open_jklog::mod_jk.c (2652): log time stamp format is '[%a %b %d %H:%M:%[CUT 
 -- CUT -- CUT]
 [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [error] 
 jk_handler::mod_jk.c (2223): Could not init service for worker=confluence

 this dump doesn't show any lines, which assure, that workers.properties 
 got found and read. Usually it should dump the contents of the 
 workers.properties in debug log level.

 You should find lines close to the following:

 [Tue Oct 16 12:08:49.730 2007] [7002:1] [debug] do_shm_open::jk_shm.c 
 (402): Truncated shared memory to 28800
 [Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] do_shm_open::jk_shm.c 
 (447): Initialized shared memory size=28800 free=28672 addr=0xfee5
 [Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] 
 do_shm_open_lock::jk_shm.c (321): Opened shared memory lock 
 /some/path/logs/jk-runtime-status.7002.lock
 [Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] init_jk::mod_jk.c 
 (2673): Initialized shm:/some/path/logs/jk-runtime-status.7002 (28672 bytes)
 [Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] init_jk::mod_jk.c 
 (2690): Setting default connection pool max size to 1
 [Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] 
 jk_map_read_property::jk_map.c (492): Adding property 'worker.list' with 
 value 'confluence' to map.
 [Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] 
 jk_map_resolve_references::jk_map.c (752): Checking for references with 
 prefix worker. with wildcard (recursion 1)
 [Tue Oct 16 12:08:49.731 2007] [7002:1] [debug] jk_map_dump::jk_map.c 
 (590): Dump of map: 'ServerRoot' - 
 '/opt/build/test/apache22-prefork-2.2.6sp1_0.9.8e-1'
 [Tue Oct 16 12:08:49.732 2007] [7002:1] [debug] jk_map_dump::jk_map.c 
 (590): Dump of map: 'worker.list' - 'confluence'
 [Tue Oct 16 12:08:49.732 2007] [7002:1] [debug] 
 build_worker_map::jk_worker.c (241): creating worker confluence
 [Tue Oct 16 12:08:49.732 2007] [7002:1] [debug] 
 wc_create_worker::jk_worker.c (145): about to create instance confluence 
 of ajp13
 [Tue Oct 16 12:08:49.732 2007] [7002:1] [debug] 
 wc_create_worker::jk_worker.c (158): about to validate and init confluence
 [Tue Oct 16 12:08:49.732 2007] [7002:1] [debug] 
 ajp_validate::jk_ajp_common.c (2216): worker confluence contact is 
' localhost:8009'
 [Tue Oct 16 12:08:49.732 2007] [7002:1] [debug] 
 ajp_init::jk_ajp_common.c (2346): setting endpoint options:
 [Tue Oct 16 12:08:49.732 2007] [7002:1] [debug] 
 ajp_init::jk_ajp_common.c (2349): keepalive:0
 [Tue Oct 16 12:08:49.732 2007] [7002:1] [debug] 
 ajp_init::jk_ajp_common.c (2353): timeout:  0
 [Tue Oct 16 12:08:49.732 2007] [7002:1] [debug] 
 ajp_init::jk_ajp_common.c (2357): buffer size:  0
 [Tue 

Re: mod_jk: Could not init service for worker

2007-10-16 Thread mgainty
Good Morning

http://localhost/

I mirrored your configuration:

RewriteEngine On
RewriteLogLevel 3
RewriteRule ^/confluence/ - [R,L]
RewriteRule ^(.*)$ /confluence/$1 [R,L,NE]

DocumentRoot /var/www/confluence/confluence
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /var/www/confluence/confluence/
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
##SSLRequireSSL
/Directory
Alias /confluence /var/www/confluence/confluence
Location /confluence/WEB-INF/*
deny from all
/Location
Location /confluence/META-INF/*
deny from all
/Location

and see this entry in $APACHE2_HOME/logs/access.log
127.0.0.1 - - [17/Oct/2000:08:13:00 -0400] GET /confluence// HTTP/1.1 200
148

in \var\www\confluence\confluence I have one index.html which reads as
follows
html
head
titleThis is in var\www\confluence\confluence/title
/head
body
This is in var\www\confluence\confluence
/body
/html

and this is what I see when I reference localhost:80

This is in var\www\confluence\confluence

So the configuration does work in Apache2 using this version of mod_rewrite
mod_rewrite.so 7/27/2006  57,426

Martin--
- Original Message -
Wrom: CMHVIBGDADRZFSQHYUCDDJBLVLMHAALPTCXLYRW
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, October 16, 2007 6:11 AM
Subject: Re: mod_jk: Could not init service for worker


 Hans van Zijst wrote:
  Hi,
 
  Since I updated my system last week, mod_jk doesn't work anymore. Tomcat
starts up just fine, no errors or warnings. I checked that the AJP1.3
connector runs, it listens on port 8009. Apache runs fine as well, but as
soon as I connect to the URL I mapped to Tomcat, I get:
 
  [error] jk_handler::mod_jk.c (2223): Could not init service for
worker=confluence
 
  I did a few traces and found out that no connection is attempted to port
8009, so I assume the problem is somewhere in my Apache config. I'm lost for
answers as I couldn't find anything on the web or in my documentation. Can
anyone please point me in the right direction?
 
 
  This is my configuration:
 
  Linux (Debian Lenny, i386)
  Tomcat 5.5
  Apache 2.2.6
  mod_jk 1.2.25

 Fine.
 What's your platform (OS)?

  Here's my workers.properties:
 
   BEGIN workers.properties 
 
  worker.list=confluence
 
  worker.confluence.host=localhost
  worker.confluence.port=8009
  worker.confluence.type=ajp13

 Very basic, but OK.

   END workers.properties 
 
  I configured mod_jk to log as much as possible. This is what it logs
(from startup to Internal server error):

 What do you mean by Internal server error: this string is not shown
 here. Is there anything in the Apache error log?

   BEGIN mod_jk log 
 
  [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug]
open_jklog::mod_jk.c (2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q
%Y] '
  [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug]
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
  [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug]
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule
'/confluence=confluence' source 'JkMount' was added
  [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug]
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule
'/confluence/*=confluence' source 'JkMount' was added
  [Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [info]
init_jk::mod_jk.c (2775): mod_jk/1.2.25 initialized
  [Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug]
open_jklog::mod_jk.c (2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q
%Y] '
  [Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug]
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
  [Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug]
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule
'/confluence=confluence' source 'JkMount' was added
  [Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug]
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule
'/confluence/*=confluence' source 'JkMount' was added
  [Thu Oct 11 11:10:04.891 2007] [15502:3078624944] [info]
init_jk::mod_jk.c (2775): mod_jk/1.2.25 initialized
  [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI
'/confluence/' from 2 maps
  [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (609): Attempting to map context URI
'/confluence/*=confluence' source 'JkMount'
  [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug]
map_uri_to_worker::jk_uri_worker_map.c (624): Found a wildchar match
'/confluence/*=confluence'
  [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug]
jk_handler::mod_jk.c (2131): Into handler jakarta-servlet worker=confluence
r-proxyreq=0
  [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug]
wc_get_worker_for_name::jk_worker.c (115): found a worker confluence
  [Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug

Re: mod_jk: Could not init service for worker

2007-10-16 Thread Hans van Zijst
Hi Martin,

The problem is not in mod_rewrite, but in mod_jk. The mod_rewrite has worked 
like a charm from the beginning, mod_jk has stopped working little more than a 
week ago.

Kind regards,

Hans


 [EMAIL PROTECTED] 17-10-2000 14:22:31 
 Good Morning

 http://localhost/ 

 I mirrored your configuration:
[ CUT -- CUT -- CUT ]
 So the configuration does work in Apache2 using this version of mod_rewrite
 mod_rewrite.so 7/27/2006  57,426

 Martin--



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk: Could not init service for worker

2007-10-16 Thread Rainer Jung

Hans van Zijst wrote:
 How does that file look like? Are the paths OK? Does that file really
 get read in?

 The mod_jk.log is posted above. If I need to see the messages you 
posted, I assume that somehow the workers.properties is not being read 
during startup. This is how mod_jk is loaded in Apache:


 LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so
 JkWorkersFile /etc/apache2/workers.properties

 This is the config that's included in Apache. The paths are ok.

 I found quite a few Tomcat messages in my syslog.

Tomcat errors should be irrelevant at this stage, your mod_jk doesn't 
initialize correctly, even before trying to context tomcat.


You could double check, if the Apache user can really read 
/etc/apache2/workers.properties.


As a temporary workaround, since your workers.properties is very small, 
you could try JkWorkerProperty directives. Each line


a.b.c=d

of workers.properties can also be given directly in an httpd.conf include as

JkWorkerProperty a.b.c=d

If that works, we definitely know, that the probloem lies in finding the 
correct workers.properties. Your situation is definitely strange. No 
problems related to your symptoms are known.


By the way: the JkWorkersFile directive should be included in the global 
part of the httpd configuration, not inside a virtual server.


Last thing: if you post the jk log again with JkLogLevel trace, I can 
check against the normal startup lines and detect the first step during 
startup that's missing. Log level trace will log most function calls at 
function entry and return.


Regards,

Rainer

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk: Could not init service for worker

2007-10-16 Thread Hans van Zijst
Hi,

 [EMAIL PROTECTED] 16-10-2007 14:52:45 
 Tomcat errors should be irrelevant at this stage, your mod_jk doesn't 
 initialize correctly, even before trying to context tomcat.

 You could double check, if the Apache user can really read 
 /etc/apache2/workers.properties.

Yup, Apache can find and read the file, it's world-readable.


 As a temporary workaround, since your workers.properties is very small,
 you could try JkWorkerProperty directives. Each line

 a.b.c=d

 of workers.properties can also be given directly in an httpd.conf include as

 JkWorkerProperty a.b.c=d

 If that works, we definitely know, that the probloem lies in finding the 
 correct workers.properties. Your situation is definitely strange. No 
 problems related to your symptoms are known.

Nice test. I tried it, but it yields exactly the same. I removed the reference 
to the workers.properties file and included the JkWorkerProperty statements in 
httpd.conf. Unfortunately the messages that appear in the log are exactly the 
same... Looks like the workers.properties file is being read correctly.

 By the way: the JkWorkersFile directive should be included in the global 
 part of the httpd configuration, not inside a virtual server.

I noticed :)  Apache complained when I did a config check the first time (I 
added it to the VirtualHost at first).


 Last thing: if you post the jk log again with JkLogLevel trace, I can 
 check against the normal startup lines and detect the first step during 
 startup that's missing. Log level trace will log most function calls at 
 function entry and return.

 Regards,

 Rainer

See below. I switched logging to trace, restarted Apache and did the request. 
This is the log.

Kind regards,

Hans


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: mod_jk: Could not init service for worker

2007-10-16 Thread Hans van Zijst
Hmm, seems like attachments are filtered out :)

 See below. I switched logging to trace, restarted Apache and did the 
 request. This is the log.


[Tue Oct 16 15:11:44.732 2007] [8966:3078547120] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Tue Oct 16 15:11:44.732 2007] [8966:3078547120] [trace] 
uri_worker_map_alloc::jk_uri_worker_map.c (182): enter
[Tue Oct 16 15:11:44.732 2007] [8966:3078547120] [trace] 
uri_worker_map_open::jk_uri_worker_map.c (407): enter
[Tue Oct 16 15:11:44.732 2007] [8966:3078547120] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 1
[Tue Oct 16 15:11:44.732 2007] [8966:3078547120] [trace] 
uri_worker_map_add::jk_uri_worker_map.c (315): enter
[Tue Oct 16 15:11:44.732 2007] [8966:3078547120] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Tue Oct 16 15:11:44.732 2007] [8966:3078547120] [trace] 
uri_worker_map_add::jk_uri_worker_map.c (398): exit
[Tue Oct 16 15:11:44.732 2007] [8966:3078547120] [trace] 
uri_worker_map_open::jk_uri_worker_map.c (479): exit
[Tue Oct 16 15:11:44.732 2007] [8966:3078547120] [trace] 
uri_worker_map_alloc::jk_uri_worker_map.c (198): exit
[Tue Oct 16 15:11:44.733 2007] [8966:3078547120] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Tue Oct 16 15:11:44.973 2007] [8967:3078547120] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Tue Oct 16 15:11:44.973 2007] [8967:3078547120] [trace] 
uri_worker_map_alloc::jk_uri_worker_map.c (182): enter
[Tue Oct 16 15:11:44.973 2007] [8967:3078547120] [trace] 
uri_worker_map_open::jk_uri_worker_map.c (407): enter
[Tue Oct 16 15:11:44.974 2007] [8967:3078547120] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 1
[Tue Oct 16 15:11:44.974 2007] [8967:3078547120] [trace] 
uri_worker_map_add::jk_uri_worker_map.c (315): enter
[Tue Oct 16 15:11:44.974 2007] [8967:3078547120] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Tue Oct 16 15:11:44.974 2007] [8967:3078547120] [trace] 
uri_worker_map_add::jk_uri_worker_map.c (398): exit
[Tue Oct 16 15:11:44.974 2007] [8967:3078547120] [trace] 
uri_worker_map_open::jk_uri_worker_map.c (479): exit
[Tue Oct 16 15:11:44.974 2007] [8967:3078547120] [trace] 
uri_worker_map_alloc::jk_uri_worker_map.c (198): exit
[Tue Oct 16 15:11:44.974 2007] [8967:3078547120] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [trace] 
map_uri_to_worker::jk_uri_worker_map.c (542): enter
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI 
'/confluence/' from 1 maps
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (609): Attempting to map context URI 
'/confluence/*=confluence' source 'JkMount'
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (624): Found a wildchar match 
'/confluence/*=confluence'
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [trace] 
map_uri_to_worker::jk_uri_worker_map.c (627): exit
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [trace] jk_handler::mod_jk.c 
(2065): enter
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [debug] jk_handler::mod_jk.c 
(2131): Into handler jakarta-servlet worker=confluence r-proxyreq=0
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [trace] 
wc_get_worker_for_name::jk_worker.c (105): enter
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [debug] 
wc_get_worker_for_name::jk_worker.c (115): found a worker confluence
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [trace] 
wc_get_worker_for_name::jk_worker.c (117): exit
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [trace] 
wc_maintain::jk_worker.c (309): enter
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [debug] 
wc_maintain::jk_worker.c (323): Maintaining worker confluence
[Tue Oct 16 15:11:59.255 2007] [8973:3068496784] [trace] 
ajp_maintain::jk_ajp_common.c (2532): enter
[Tue Oct 16 15:11:59.287 2007] [8973:3068496784] [trace] 
ajp_maintain::jk_ajp_common.c (2540): exit
[Tue Oct 16 15:11:59.287 2007] [8973:3068496784] [trace] 
wc_maintain::jk_worker.c (334): exit
[Tue Oct 16 15:11:59.287 2007] [8973:3068496784] [debug] 
wc_get_name_for_type::jk_worker.c (292): Found worker type 'ajp13'
[Tue Oct 16 15:11:59.287 2007] [8973:3068496784] [error] jk_handler::mod_jk.c 
(2223): Could not init service for worker=confluence
[Tue Oct 16 15:11:59.287 2007] [8973:3068496784] [trace] jk_handler::mod_jk.c 
(2227): exit


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk: Could not init service for worker

2007-10-16 Thread Rainer Jung
I'm really puzzled. Somehow a lot of standard startup messages are 
missing. As long as they are not there, it might not be helpful to look 
for additional reasons, why the worker is not working.


Did you define a JkLogFile (and JkLogLevel) inside the global server?

Are you using one of the two standard httpd MPMs, i.e. worker or prefork?

Anything special about your way of starting up apache, like using 
httpd -X or so?


How many httpd processes do you have after startup?

Could you try a binary download from the connectors site. We generally 
prefer compilation by the user, but for debugging it might be 
interesting to check with our contributed build.


From the code it's clear, that we either don't run an important part of 
the startup code, or we run it, but don't do the logging. The code 
usually gets called automatically by httpd during initialization off a 
new httpd process.


You could also simplify things for the moment by producing a logs sub 
directory if your ServerRoot and making it writable for the httpd 
processes (and checking if something interesting appears there (like a 
file mod_jk.log).


Regards,

Rainer

Hans van Zijst wrote:

Hmm, seems like attachments are filtered out :)


See below. I switched logging to trace, restarted Apache and did the request. 
This is the log.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk: Could not init service for worker

2007-10-16 Thread Ben Stringer
On Tue, 2007-10-16 at 15:37 +0200, Hans van Zijst wrote:
 Hmm, seems like attachments are filtered out :)
 
  See below. I switched logging to trace, restarted Apache and did the 
  request. This is the log.
 
 

 [Tue Oct 16 15:11:59.287 2007] [8973:3068496784] [debug] 
 wc_get_name_for_type::jk_worker.c (292): Found worker type 'ajp13'
 [Tue Oct 16 15:11:59.287 2007] [8973:3068496784] [error] jk_handler::mod_jk.c 
 (2223): Could not init service for worker=confluence


Hi Hans,

Are you are sure that tomcat is listening on localhost:8009 (ie. telnet
localhost 8009 connects)? Are you by any chance running SELinux? It can
limit the Apache process connecting to given sockets.

Cheers, Ben

 [Tue Oct 16 15:11:59.287 2007] [8973:3068496784] [trace] jk_handler::mod_jk.c 
 (2227): exit
 
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: mod_jk: Could not init service for worker

2007-10-16 Thread Hans van Zijst
Hi Ben,

Yes, Tomcat is listening on port 8009 on both interfaces (external IP and 
localhost). I can telnet to it. Apache however doesn't try to connect, I 
verified that with a network sniffer.

I don't use SELinux, as I don't know enough about it yet.

Kind regards,

Hans


 [EMAIL PROTECTED] 16-10-2007 16:05:35 

 Hi Hans,

 Are you are sure that tomcat is listening on localhost:8009 (ie. telnet
 localhost 8009 connects)? Are you by any chance running SELinux? It can
 limit the Apache process connecting to given sockets.

 Cheers, Ben



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk: Could not init service for worker

2007-10-15 Thread Hans van Zijst
Hi,

Since I updated my system last week, mod_jk doesn't work anymore. Tomcat starts 
up just fine, no errors or warnings. I checked that the AJP1.3 connector runs, 
it listens on port 8009. Apache runs fine as well, but as soon as I connect to 
the URL I mapped to Tomcat, I get:

[error] jk_handler::mod_jk.c (2223): Could not init service for 
worker=confluence

I did a few traces and found out that no connection is attempted to port 8009, 
so I assume the problem is somewhere in my Apache config. I'm lost for answers 
as I couldn't find anything on the web or in my documentation. Can anyone 
please point me in the right direction?


This is my configuration:

Linux (Debian Lenny, i386)
Tomcat 5.5
Apache 2.2.6
mod_jk 1.2.25

Here's my workers.properties:

 BEGIN workers.properties 

worker.list=confluence

worker.confluence.host=localhost
worker.confluence.port=8009
worker.confluence.type=ajp13

 END workers.properties 

I configured mod_jk to log as much as possible. This is what it logs (from 
startup to Internal server error):

 BEGIN mod_jk log 

[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule 
'/confluence=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule 
'/confluence=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.891 2007] [15502:3078624944] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI 
'/confluence/' from 2 maps
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (609): Attempting to map context URI 
'/confluence/*=confluence' source 'JkMount'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (624): Found a wildchar match 
'/confluence/*=confluence'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] jk_handler::mod_jk.c 
(2131): Into handler jakarta-servlet worker=confluence r-proxyreq=0
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_get_worker_for_name::jk_worker.c (115): found a worker confluence
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_maintain::jk_worker.c (323): Maintaining worker confluence
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_get_name_for_type::jk_worker.c (292): Found worker type 'ajp13'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [error] jk_handler::mod_jk.c 
(2223): Could not init service for worker=confluence

 END mod_jk log 

This is the Virtual Host I configured in Apache. Apache does client 
authentication: if you don't have the right SSL certificate, you're not coming 
in.

 BEGIN virtual host 
NameVirtualHost *:80

VirtualHost *:80
ServerAdmin 
ServerName 
ServerAlias 

RewriteEngine On
RewriteLogLevel 3
RewriteRule ^(/)(.*)$ https://%{HTTP_HOST}/confluence/$2 [R,L]
ServerSignature Off

/VirtualHost

NameVirtualHost *:443
VirtualHost *:443
ServerAdmin 
ServerName 
ServerAlias 

SSLEngine On
SSLVerifyClient require
SSLVerifyDepth 2
SSLCACertificateFile /etc/apache2/ssl/minichain.crt
SSLCertificateChainFile /etc/apache2/ssl/minichain.crt

RewriteEngine On
RewriteLogLevel 3
RewriteRule ^/confluence/ - [R,L]
RewriteRule ^(.*)$ /confluence/$1 [R,L,NE]


DocumentRoot /var/www/confluence/confluence
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /var/www/confluence/confluence/
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny

mod_jk: Could not init service for worker

2007-10-11 Thread Hans van Zijst
Hi,

Since I updated my system last monday, mod_jk doesn't work anymore. Tomcat 
starts up just fine, no errors or warnings. I checked that the AJP1.3 connector 
runs, it listens on port 8009. Apache runs fine as well, but as soon as I 
connect to the URL I mapped to Tomcat, I get:

[error] jk_handler::mod_jk.c (2223): Could not init service for 
worker=confluence

I did a few traces and found out that no connection is attempted to port 8009, 
so I assume the problem is somewhere in my Apache config. I'm lost for answers 
as I couldn't find anything on the web or in my documentation. Can anyone 
please point me in the right direction?


This is my configuration:

Linux (Debian Lenny, i386)
Tomcat 5.5
Apache 2.2.6
mod_jk 1.2.25

Here's my workers.properties:

 BEGIN workers.properties 

worker.list=confluence

worker.confluence.host=localhost
worker.confluence.port=8009
worker.confluence.type=ajp13

 END workers.properties 

I configured mod_jk to log as much as possible. This is what it logs (from 
startup to Internal server error):

 BEGIN mod_jk log 

[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule 
'/confluence=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.742 2007] [15501:3078624944] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] open_jklog::mod_jk.c 
(2652): log time stamp format is '[%a %b %d %H:%M:%S.%Q %Y] '
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_open::jk_uri_worker_map.c (423): rule map size is 2
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (372): exact rule 
'/confluence=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.890 2007] [15502:3078624944] [debug] 
uri_worker_map_add::jk_uri_worker_map.c (364): wildchar rule 
'/confluence/*=confluence' source 'JkMount' was added
[Thu Oct 11 11:10:04.891 2007] [15502:3078624944] [info] init_jk::mod_jk.c 
(2775): mod_jk/1.2.25 initialized
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (597): Attempting to map URI 
'/confluence/' from 2 maps
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (609): Attempting to map context URI 
'/confluence/*=confluence' source 'JkMount'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
map_uri_to_worker::jk_uri_worker_map.c (624): Found a wildchar match 
'/confluence/*=confluence'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] jk_handler::mod_jk.c 
(2131): Into handler jakarta-servlet worker=confluence r-proxyreq=0
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_get_worker_for_name::jk_worker.c (115): found a worker confluence
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_maintain::jk_worker.c (323): Maintaining worker confluence
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [debug] 
wc_get_name_for_type::jk_worker.c (292): Found worker type 'ajp13'
[Thu Oct 11 11:10:14.351 2007] [15508:3060181904] [error] jk_handler::mod_jk.c 
(2223): Could not init service for worker=confluence

 END mod_jk log 

This is the Virtual Host I configured in Apache. Apache does client 
authentication: if you don't have the right SSL certificate, you're not coming 
in.

 BEGIN virtual host 
NameVirtualHost *:80

VirtualHost *:80
ServerAdmin 
ServerName 
ServerAlias 

RewriteEngine On
RewriteLogLevel 3
RewriteRule ^(/)(.*)$ https://%{HTTP_HOST}/confluence/$2 [R,L]
ServerSignature Off

/VirtualHost

NameVirtualHost *:443
VirtualHost *:443
ServerAdmin 
ServerName 
ServerAlias 

SSLEngine On
SSLVerifyClient require
SSLVerifyDepth 2
SSLCACertificateFile /etc/apache2/ssl/minichain.crt
SSLCertificateChainFile /etc/apache2/ssl/minichain.crt

RewriteEngine On
RewriteLogLevel 3
RewriteRule ^/confluence/ - [R,L]
RewriteRule ^(.*)$ /confluence/$1 [R,L,NE]


DocumentRoot /var/www/confluence/confluence
Directory /
Options FollowSymLinks
AllowOverride None
/Directory
Directory /var/www/confluence/confluence/
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny