I’m having trouble getting mod_jk to work properly after migrating to a new server setup. Previously everything was functioning correctly, but now I’m getting connection failures.
My current setup:
- mod_jk version 1.2.28
- JBoss 4.2.3 as the backend server
- AJP 1.3 connector configured on port 8009
- JBoss bound to the new server IP address
Application deployment:
My application gets deployed with this context path:
[TomcatDeployer] deploy, ctxPath=/AlertSystem, warUrl=.../tmp/deploy/tmp1234567890123456789AlertApp.ear-contents/AlertSystem-exp.war/
Configuration details:
- Worker properties file has a worker defined for the JBoss IP and port 8009
- mod-jk.conf contains:
JkMount /AlertSystem/* backend_worker
The problem:
When I try to access the application, I get these errors in mod-jk.log:
[Mon Nov 02 15:32:15 2009][31254:3087125336] [error] ajp_send_request::jk_ajp_common.c (1507): (backend_worker) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=115)
[Mon Nov 02 15:32:15 2009][31254:3087125336] [info] ajp_service::jk_ajp_common.c (2447): (backend_worker) sending request to tomcat failed (recoverable), because of error during request sending (attempt=2)
[Mon Nov 02 15:32:15 2009][31254:3087125336] [error] ajp_service::jk_ajp_common.c (2466): (backend_worker) connecting to tomcat failed.
I’ve verified that JBoss is listening on port 8009 using netstat -an and the IP addresses match in both the configuration and logs. What could be causing this connection failure?