I think you have given the wrong port for the worker configuration.
You should give the AJP port and not the HTTP port for the worker.



             Jordi Prats
             <[EMAIL PROTECTED]
             s>                                                    To
                                     users@tomcat.apache.org
             01/09/2008                                            cc
             03:58 PM
                                                              Subject
                                     mod_jk/tomcat problem
             Please respond
                   to
              "Tomcat Users
                  List"
             <[EMAIL PROTECTED]
               pache.org>






Hi
I'm trying to balance connections using mod_jk, but I'm getting this
error:

[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
ajp_service::jk_ajp_common.c (2186): (loadbalancer) sending request to

tomcat failed (recoverable), because of error during request sending
(attempt=1)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
jk_open_socket::jk_connect.c (566): connect to 127.0.0.1:8009 failed
(errno=111)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
ajp_connect_to_endpoint::jk_ajp_common.c (869): Failed opening socket
to
(127.0.0.1:8009) (errno=111)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [error]
ajp_send_request::jk_ajp_common.c (1359): (loadbalancer) connecting to

backend failed. Tomcat is probably not started or is listening on the
wrong port (errno=111)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
ajp_service::jk_ajp_common.c (2186): (loadbalancer) sending request to

tomcat failed (recoverable), because of error during request sending
(attempt=2)
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [error]
ajp_service::jk_ajp_common.c (2204): (loadbalancer) Connecting to
tomcat
failed. Tomcat is probably not started or is listening on the wrong
port
[Wed Jan 09 11:12:55 2008] [31970:3086935744] [info]
jk_handler::mod_jk.c (2364): Service error=-3 for worker=loadbalancer

It's trying to connect to 127.0.0.1:8009, but on my workers.properties

file I define that tomcat is listening on 8080:

worker.list=loadbalancer,worker1,worker2

worker.loadbalancer.balance_workers=worker1,worker2

worker.worker1.type=ajp13
worker.worker1.host=192.168.11.6
worker.worker1.port=8080
worker.worker1.lbfactor=1

worker.worker2.type=ajp13
worker.worker2.host=192.168.11.2
worker.worker2.port=8080
worker.worker2.lbfactor=1

Anyone could tell me why is trying to connect to 8009 insted of 8080?

Thank you!

Jordi

--
......................................................................
         __
        / /          Jordi Prats
  C E / S / C A      Dept. de Sistemes
      /_/            Centre de Supercomputació de Catalunya

  Gran Capità, 2-4 (Edifici Nexus) · 08034 Barcelona
  T. 93 205 6464 · F.  93 205 6979 · [EMAIL PROTECTED]
......................................................................



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to