On 13.07.2010 23:17, Michael Powe wrote:
Hello,

I asked this question in the httpd list but no joy.

I have set up tomcat 6 and IBM httpd server to proxy requests using
mod_jk.

IBM_HTTP_Server/6.0.2 Apache/2.0.47 (Unix) mod_jk/1.2.30 Server at
localhost Port 80

I have followed all instructions as nearly as I can make
out.

The mod_jk log shows:

[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (951): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map
URI '/TlTaggerTest/target.jsp' from 9 maps
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (839): enter
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (850): Attempting to map context URI
'/TlTaggerTest/*.jsp=worker1' source 'JkMount'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [debug]
find_match::jk_uri_worker_map.c (863): Found a wildchar match
'/TlTaggerTest/*.jsp=worker1'
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
find_match::jk_uri_worker_map.c (866): exit
[Tue Jul 13 16:41:02 2010] [7639:50215792] [trace]
map_uri_to_worker_ext::jk_uri_worker_map.c (1065): exit

The next lines should have been:

... [7639:50215792] [trace] jk_handler::mod_jk.c (2383): enter
... [7639:50215792] [debug] jk_handler::mod_jk.c (2462): Into handler jakarta-servlet worker=worker1 r->proxyreq=0

It seems there is some other module, that handles the request instead of mod_jk or the handler is not set correctly. If you compiled to module yourself, you can easily find out by applying a little change:

2366 static int jk_handler(request_rec * r)
2367 {
2368     const char *worker_name;
2369     jk_server_conf_t *xconf;
2370     int rc, dmt = 1;
2371
2372 /* We do DIR_MAGIC_TYPE here to make sure TC gets all requests, even 2373 * if they are directory requests, in case there are no static files 2374 * visible to Apache and/or DirectoryIndex was not used. This is only
2375      * used when JkOptions has ForwardDirectories set. */
2376     /* Not for me, try next handler */
2377     if (strcmp(r->handler, JK_HANDLER)
2378         && (dmt = strcmp(r->handler, DIR_MAGIC_TYPE)))
2379         return DECLINED;
2380

Before line 2372 add the following lines:

if (JK_IS_DEBUG_LEVEL(xconf->log)) {
    jk_log(xconf->log, JK_LOG_DEBUG,
           "Starting jk handler, Apache thinks it should use '%s'",
           r->handler ? r->handler : "NULL");
}

Regards,

Rainer

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

Reply via email to