Hi,

I am running Tomcat5.5.9 and JDK1.5.0_04 with a Apache 1.3 webserver on FreeBSD 5.3.

I can't seem to get anything to successfully pass though the mod_jk connector to the webapp.

My mod_jk.conf , workers.properties are as follows.

$ less mod_jk.conf
#
       JkWorkersFile /usr/local/etc/apache/workers.properties
       JkLogFile  /var/log/jk.log
       JkLogLevel debug

<VirtualHost localhost>
       ServerName localhost

       # Sample JkMounts.  Replace these with the paths you would
       # like to mount from your JSP server.
       JkMount /*.jsp worker1
       JkMount /servlet/* worker1
       JkMount /examples/* worker1
       JkMount /docstore worker1
       JkMount /docstore/* worker1
</VirtualHost>
mod_jk.conf (END)

$ less workers.properties
# Setting Tomcat & Java Home
workers.tomcat_home=/usr/local/jakarta-tomcat5.5/
workers.java_home=/usr/local/jdk1.5.0/
ps=/

# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.reclycle_timeout=300

workers.properties (END)


When I start Tomcat & Apache... is seems to start ok , but I get this output in the jk.log file ...

$ less /var/log/jk.log
[Sun Sep 18 21:37:30 2005] [6691:0000] [error] jk_init::mod_jk.c (2035): Initializing shm:/usr/local/logs/jk-runtime-status errno=2 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] uri_worker_map_open::jk_uri_worker_map.c (323): rule map size is 0 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] build_worker_map::jk_worker.c (236): creating worker worker1 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] wc_create_worker::jk_worker.c (141): about to create instance worker1 of ajp13 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] wc_create_worker::jk_worker.c (154): about to validate and init worker1 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_validate::jk_ajp_common.c (1806): worker worker1 contact is 'localhost:8009' [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1895): setting socket keepalive to 1 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1934): setting socket timeout to -1 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1938): setting socket buffer size to 0 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1942): setting connection recycle timeout to 0 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1946): setting cache timeout to 600 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1950): setting connect timeout to 0 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1954): setting reply timeout to 0 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1958): setting prepost timeout to 0 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1962): setting recovery opts to 0 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_init::jk_ajp_common.c (1966): setting number of retries to 3 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] ajp_create_endpoint_cache::jk_ajp_common.c (1843): setting connection cache size to 10 [Sun Sep 18 21:37:30 2005] [6691:0000] [debug] build_worker_map::jk_worker.c (248): removing old worker1 worker [Sun Sep 18 21:39:14 2005] [7500:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/docstore/' from 0 maps [Sun Sep 18 22:48:11 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' from 0 maps [Sun Sep 18 22:48:11 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/index.html' from 0 maps [Sun Sep 18 22:48:11 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/HEADER.html' from 0 maps [Sun Sep 18 22:48:11 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/README.html' from 0 maps [Sun Sep 18 23:54:42 2005] [7503:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' from 0 maps [Sun Sep 18 23:54:42 2005] [7503:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/index.html' from 0 maps [Sun Sep 18 23:54:42 2005] [7503:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/HEADER.html' from 0 maps [Sun Sep 18 23:54:42 2005] [7503:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/README.html' from 0 maps [Sun Sep 18 23:55:51 2005] [7507:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' from 0 maps [Sun Sep 18 23:55:51 2005] [7507:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/index.html' from 0 maps [Sun Sep 18 23:55:51 2005] [7507:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/HEADER.html' from 0 maps [Sun Sep 18 23:55:51 2005] [7507:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/README.html' from 0 maps [Mon Sep 19 00:40:41 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' from 0 maps [Mon Sep 19 00:40:41 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/index.html' from 0 maps [Mon Sep 19 00:40:41 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/HEADER.html' from 0 maps [Mon Sep 19 00:40:41 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/README.html' from 0 maps [Mon Sep 19 07:12:08 2005] [7503:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/_vti_bin/_vti_aut/fp30reg.dll' from 0 maps [Mon Sep 19 08:31:45 2005] [7504:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/proxycheck/proxyjudge.cgi' from 0 maps [Mon Sep 19 14:19:00 2005] [7500:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' from 0 maps [Mon Sep 19 14:19:00 2005] [7500:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/index.html' from 0 maps [Mon Sep 19 14:19:00 2005] [7500:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/HEADER.html' from 0 maps [Mon Sep 19 14:19:00 2005] [7500:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/README.html' from 0 maps [Mon Sep 19 15:36:41 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/' from 0 maps [Mon Sep 19 15:36:41 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/index.html' from 0 maps [Mon Sep 19 15:36:41 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/HEADER.html' from 0 maps [Mon Sep 19 15:36:41 2005] [7501:0000] [debug] map_uri_to_worker::jk_uri_worker_map.c (449): Attempting to map URI '/README.html' from 0 maps
/var/log/jk.log (END)


I see the process running as I expect in the proc list ...
$ ps aux | grep www
www 7500 0.0 0.9 4124 2392 ?? I 9:37PM 0:00.01 /usr/local/sbin/httpd www 7501 0.0 0.9 4108 2392 ?? I 9:37PM 0:00.02 /usr/local/sbin/httpd www 7502 0.0 1.0 4232 2484 ?? I 9:37PM 0:00.01 /usr/local/sbin/httpd www 7503 0.0 0.9 4124 2392 ?? I 9:37PM 0:00.01 /usr/local/sbin/httpd www 7504 0.0 0.9 4100 2376 ?? I 9:37PM 0:00.01 /usr/local/sbin/httpd www 7507 0.0 0.9 4120 2392 ?? I 9:39PM 0:00.01 /usr/local/sbin/httpd www 7780 0.0 0.9 4084 2356 ?? I 11:54PM 0:00.00 /usr/local/sbin/httpd www 6784 0.0 13.9 242500 35112 p0 S 5:15PM 3:31.83 /usr/local/jdk1.5.0/bin/java -jar -Dcatalina.home=/usr/local/jakarta-tomcat5.5 bin/bootstrap.jar start


and I see it listening in the output from netstat ...

$ netstat -an | grep 80
tcp4       0      0  127.0.0.1.8005         *.*                    LISTEN
tcp4       0      0  *.8009                 *.*                    LISTEN
tcp4       0      0  *.8180                 *.*                    LISTEN
tcp4       0      0  *.80                   *.*                    LISTEN
$

http.conf has the mod_jk entries as well...

$ grep mod_jk httpd.conf
LoadModule jk_module          libexec/apache/mod_jk.so
AddModule mod_jk.c
Include /usr/local/etc/apache/mod_jk.conf
$

now when I try to connect to my webapp ... I get nothing. I was getting a directory listing, until I set listing to 'false' in web.xml

TIA,
any ideas,

Don

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to