What tomcat connector is using port 40593? Since you can connect to it
from a browser it sounds like HTTP.  Apache/mod_jk needs to connect to
an ajp tomcat connector.


--
Ian.


On Tue, Jan 13, 2009 at 12:27 AM, Mohamed Rafi Sirajuddeen
<sirajudd...@me.com> wrote:
> Hi,
>
> I have Apache 2.2 installed (on Unix), and I am using mod_jk for load 
> balancing between application server instances.
>
> I have configured httpd_VHostSSL.conf to redirect requests which come to the 
> webserver. Additionally, using mod_jk and workers.properties, I am load 
> balancing the requests between the application servers.
>
> When I start the apache servers, they get started successfully w/o any 
> issues, But when I connect to the application from the browser, the mod_jk 
> logs show that the webserver is unable to connect to the app-server instance. 
> Following is the error message I am getting from logs:
>
> [Tue Jan 13 00:19:40 2009] [69898:0000] [debug] jk_open_socket::jk_connect.c 
> (335): socket TCP_NODELAY set to On
> [Tue Jan 13 00:19:40 2009] [69898:0000] [debug] jk_open_socket::jk_connect.c 
> (433): trying to connect socket 9 to xx.xx.xx.xx:40593
> [Tue Jan 13 00:19:40 2009] [69898:0000] [debug] jk_open_socket::jk_connect.c 
> (459): socket 9 connected to xx.xx.xx.xx:40593
> [Tue Jan 13 00:19:40 2009] [69898:0000] [debug] 
> ajp_connect_to_endpoint::jk_ajp_common.c (850): Connected socket 9 to 
> (xx.xx.xx.xx:40593)
> [Tue Jan 13 00:19:40 2009] [69898:0000] [debug] 
> ajp_connection_tcp_send_message::jk_ajp_common.c (896): sending to ajp13 
> pos=4 len=5 max=16
> [Tue Jan 13 00:19:40 2009] [69898:0000] [debug] 
> ajp_connection_tcp_send_message::jk_ajp_common.c (896): 0000    12 34 00 01 
> 0A 00 00 00 00 00 00 00 00 00 00 00  - .4..............
> [Tue Jan 13 00:20:00 2009] [69898:0000] [info]  
> ajp_handle_cping_cpong::jk_ajp_common.c (810): timeout in reply pong
> [Tue Jan 13 00:20:00 2009] [69898:0000] [info]  
> ajp_send_request::jk_ajp_common.c (1273): (node2) error connecting to the 
> backend server (errno=60)
> [Tue Jan 13 00:20:00 2009] [69898:0000] [info]  ajp_service::jk_ajp_common.c 
> (1941): (node2) sending request to tomcat failed,  recoverable operation 
> attempt=2
> [Tue Jan 13 00:20:00 2009] [69898:0000] [error] ajp_service::jk_ajp_common.c 
> (1953): (node2) Connecting to tomcat failed. Tomcat is probably not started 
> or is listening on the wrong port
> [Tue Jan 13 00:20:00 2009] [69898:0000] [debug] ajp_done::jk_ajp_common.c 
> (2286): recycling connection pool slot=0 for worker node2
>
> However, I am able to telnet to the IP:port from the command prompt, and also 
> able to directly connect to the tomcat instance from the browser 
> (http://xx.xx.xx.xx:40593)
>
> Also, when the webserver logs say request timeout, I check the tomcat logs 
> during the same duration, I dont even check the requests hitting the tomcat 
> server. Both the apache server and tomcat server are in the same subnet, and 
> hence there is no issue of ACLs etc..
>
> Any help would be greatly appreciated.
>
> Regards
> Siraj M
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to