New Java/Tomcat upgrade giving 503 error on browser and mod_jk unable to connect
by mfoley from LinuxQuestions.org on (#5CX9Q)
I've just upgraded Java to Oracle version 15.0.1; Tomcat 9.0.41 and tomcat-connectors 1.2.48 on my Slackware 14.2 system. This is a procedure I've been doing for the past 10 years or so, but this time I'm having problems.
httpd and tomcat are running. I've tested the new Java at the command line.
When I run tomcat, I get the following in /var/log/httpd/mod_jk.log:
Code:Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] jk_open_socket::jk_connect.c (815): connect to 127.0.0.1:8009 failed (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1064): (worker1) (127.0.0.1:8009) (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [error] ajp_send_request::jk_ajp_common.c (1724): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] ajp_service::jk_ajp_common.c (2774): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] jk_open_socket::jk_connect.c (815): connect to 127.0.0.1:8009 failed (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1064): (worker1) Failed opening socket to (127.0.0.1:8009) (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [error] ajp_send_request::jk_ajp_common.c (1724): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] ajp_service::jk_ajp_common.c (2774): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [error] ajp_service::jk_ajp_common.c (2795): (worker1) connecting to tomcat failed (rc=-3, errors=36, client_errors=0).
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] jk_handler::mod_jk.c (2991): Service error=-3 for worker=worker1I can't find anything on the web that addresses this. Ideas?


httpd and tomcat are running. I've tested the new Java at the command line.
When I run tomcat, I get the following in /var/log/httpd/mod_jk.log:
Code:Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] jk_open_socket::jk_connect.c (815): connect to 127.0.0.1:8009 failed (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1064): (worker1) (127.0.0.1:8009) (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [error] ajp_send_request::jk_ajp_common.c (1724): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] ajp_service::jk_ajp_common.c (2774): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=1)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] jk_open_socket::jk_connect.c (815): connect to 127.0.0.1:8009 failed (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] ajp_connect_to_endpoint::jk_ajp_common.c (1064): (worker1) Failed opening socket to (127.0.0.1:8009) (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [error] ajp_send_request::jk_ajp_common.c (1724): (worker1) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] ajp_service::jk_ajp_common.c (2774): (worker1) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [error] ajp_service::jk_ajp_common.c (2795): (worker1) connecting to tomcat failed (rc=-3, errors=36, client_errors=0).
[Fri Jan 15 19:55:46 2021] [13713:140623562614528] [info] jk_handler::mod_jk.c (2991): Service error=-3 for worker=worker1I can't find anything on the web that addresses this. Ideas?