Hello,

Until a recent upgrade I've been using Apache2 with Jetty and mod_jk2 just fine. Now, after I upgraded Apache to 2.2.3 and switched to mod_jk 1.2.18 and having the same version of Jetty (4.2.24) I find the following in the mod_jk.log:

[Sun Aug 12 15:53:13 2007] [9685:3078895296] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (966): (worker1) can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8019) is down (errno=104) [Sun Aug 12 15:53:13 2007] [9685:3078895296] [error] ajp_get_reply::jk_ajp_common.c (1658): (worker1) Tomcat is down or refused connection. No response has been sent to the client (yet) [Sun Aug 12 15:53:13 2007] [9685:3078895296] [info] ajp_service::jk_ajp_common.c (2046): (worker1) receiving from tomcat failed, recoverable operation attempt=0 [Sun Aug 12 15:53:13 2007] [9685:3078895296] [info] ajp_service::jk_ajp_common.c (2085): (worker1) sending request to tomcat failed, recoverable operation attempt=1 [Sun Aug 12 15:53:13 2007] [9685:3078895296] [error] ajp_connection_tcp_get_message::jk_ajp_common.c (966): (worker1) can't receive the response message from tomcat, network problems or tomcat (127.0.0.1:8019) is down (errno=104) [Sun Aug 12 15:53:13 2007] [9685:3078895296] [error] ajp_get_reply::jk_ajp_common.c (1658): (worker1) Tomcat is down or refused connection. No response has been sent to the client (yet) [Sun Aug 12 15:53:13 2007] [9685:3078895296] [info] ajp_service::jk_ajp_common.c (2046): (worker1) receiving from tomcat failed, recoverable operation attempt=1 [Sun Aug 12 15:53:13 2007] [9685:3078895296] [info] ajp_service::jk_ajp_common.c (2085): (worker1) sending request to tomcat failed, recoverable operation attempt=2 [Sun Aug 12 15:53:13 2007] [9685:3078895296] [error] ajp_service::jk_ajp_common.c (2097): (worker1) Connecting to tomcat failed. Tomcat is probably not started or is listening on the wrong port [Sun Aug 12 15:53:13 2007] [9685:3078895296] [info] jk_handler::mod_jk.c (2277): Service error=0 for worker=worker1

Both Apache and Jetty are running on the same box.
mod_jk.conf looks like this:

   JkWorkersFile /etc/apache2/workers.properties
   JkLogFile     /var/log/apache2/mod_jk.log
   JkLogLevel    info
   JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
   JkOptions     +ForwardKeySize +ForwardURICompat -ForwardDirectories
   JkShmFile     /var/log/apache2/jk.shm

workers.properties:

   worker.list=worker1
   worker.worker1.port=8019
   worker.worker1.host=127.0.0.1
   worker.worker1.type=ajp13
   worker.worker1.local_worker=1
   worker.worker1.retries=2
   worker.worker1.lbfactor=1
   worker.worker1.socket_timeout=500
   worker.worker1.socket_keepalive=1

Server behaviour: everything seems to be working fine except the admin module of a certain servlet, which gives an http error (don't know exactly as I don't have access to it) but after 1-2 refreshes workes fine. I've also tried to switch to latest mod_jk, 1.2.25 (above logs are from 1.2.25) but same thing. What I can be sure of is that jetty's running just fine, regular requests are served without ANY problems. I've browsed through a servlet for at least half an hour and no error. Client feedback also confirms no weird behavior.

After googleing for a couple of days and trying different workers.properties settings, I still have no clue on what might be the cause of those log entries.

Any suggestion is appreciated.

Thanks,

--
Andrei Neagoe

Reply via email to