我有完全使用Apache 2.4.2與mod_jk的1.2.35同樣的問題打在RHEL 6的Glassfish 3.0.1一直沒能找到解決的辦法。
從Apache服務器上的mod_jk.log輸出。
[info] ajp_connection_tcp_get_message::jk_ajp_common.c (1258): (worker1) can't receive the response header message from tomcat, network problems or tomcat (<GLASSFISH SERVER IP>:8009) is down (errno=110)
[error] ajp_get_reply::jk_ajp_common.c (2117): (worker1) Tomcat is down or refused connection. No response has been sent to the client (yet)
[info] ajp_service::jk_ajp_common.c (2614): (worker1) sending request to tomcat failed (recoverable), (attempt=2)
[error] ajp_service::jk_ajp_common.c (2634): (worker1) connecting to tomcat failed.
Glassfish已啓動,並且可以通過端口8009從Apache服務器Telnet到Glassfish服務器,因此存在連接性。 Glassfish只是沒有迴應8009端口的信息,但在另一個聽衆(webcontainer端口即8080)上有迴應。
你的Apache和glassfish之間是否有防火牆? –