1 Reply Latest reply on Nov 21, 2008 3:50 PM by aarai

    Getting error while connecting with Apache

    aarai

      We have separate Apache and Jboss boxes. I keep getting the error below:

      [Fri Nov 21 13:04:40 2008][11877:5472] [debug] ajp_get_endpoint::jk_ajp_common.c (2343): acquired connection pool slot=0
      [Fri Nov 21 13:04:40 2008][11877:5472] [debug] ajp_marshal_into_msgb::jk_ajp_common.c (548): ajp marshaling done
      [Fri Nov 21 13:04:40 2008][11877:5472] [debug] ajp_service::jk_ajp_common.c (1796): processing worker1 with 2 retries
      [Fri Nov 21 13:04:40 2008][11877:5472] [debug] jk_open_socket::jk_connect.c (335): socket TCP_NODELAY set to On
      [Fri Nov 21 13:04:40 2008][11877:5472] [debug] jk_open_socket::jk_connect.c (433): trying to connect socket 11 to 10.x.x.x.x:38009
      [Fri Nov 21 13:04:40 2008][11877:5472] [info] jk_open_socket::jk_connect.c (451): connect to 10.x.x.x.x:38009 failed (errno=13)
      [Fri Nov 21 13:04:40 2008][11877:5472] [info] ajp_connect_to_endpoint::jk_ajp_common.c (876): Failed opening socket to (10.x.x.x.x:38009) (errno=13)
      [Fri Nov 21 13:04:40 2008][11877:5472] [info] ajp_send_request::jk_ajp_common.c (1273): (worker1) error connecting to the backend server (errno=13)


      ____________-

      My worker.properties file is :

      # Define list of workers that will be used

      # for mapping requests
      #worker.list=loadbalancer,status
      worker.list=worker1
      # Define Node1

      # modify the host as your host IP or DNS name.
      worker.worker1.port=38009
      worker.worker1.host=10.x.x.x
      worker.worker1.type=ajp13
      #worker.node1.lbfactor=1
      #worker.node1.cachesize=10


      I have checked the port 38009 of jboss and it is running. I can even telnet from the apache server to the jboss server on port 38009
      telnet 10.x.x.x 38009
      Trying 10.x.x.x...
      Connected to XXX.company.com (10.x.x.x).
      Escape character is '^]'.



      Please help

        • 1. Re: Getting error while connecting with Apache
          aarai

          Just an update on this incase others are also having the same problem.

          Since telnet was working i wasnt looking at the selinux setting on the server. The selinux was disallowing calls from apache to jboss. Once I allowed that, it worked great.

          Hope this helps everyone else.