2 Replies Latest reply on Nov 13, 2008 12:43 PM by brian.stansberry

    mod_cluster installation

    mdickson

      I get an error whenever I try to define a virtual host on 6666. See: http://www.jboss.org/mod_cluster/quick-start.html for the directions I am following

      The error is:

      [Wed Nov 12 14:24:22 2008] [notice] Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b DAV/2 mod_jk/1.2.26 configured -- resuming normal operations
      [Wed Nov 12 14:24:22 2008] [error] (111)Connection refused: proxy: ajp: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
      [Wed Nov 12 14:24:29 2008] [error] [client 10.10.60.131] File does not exist: /opt/jboss/httpd/htdocs/htdocs/favicon.ico
      [Wed Nov 12 14:24:32 2008] [error] (111)Connection refused: proxy: ajp: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
      [Wed Nov 12 14:24:32 2008] [error] [client 10.10.60.131] File does not exist: /opt/jboss/httpd/htdocs/htdocs/favicon.ico
      [Wed Nov 12 14:24:37 2008] [error] proxy: CLUSTER: (cluster://mycluster). All workers are in error state
      [Wed Nov 12 14:24:42 2008] [error] (111)Connection refused: proxy: ajp: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
      [Wed Nov 12 14:24:52 2008] [error] (111)Connection refused: proxy: ajp: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
      [Wed Nov 12 14:25:02 2008] [error] (111)Connection refused: proxy: ajp: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
      [Wed Nov 12 14:25:12 2008] [error] (111)Connection refused: proxy: ajp: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
      [Wed Nov 12 14:25:22 2008] [error] (111)Connection refused: proxy: ajp: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed

        • 1. Re: mod_cluster installation
          mdickson

          I thought it might have been the firewall on ether box preventing ajp from connecting.

          [root@jboss2 jboss-5.0.0.CR2]# /sbin/service --status-all | grep Firewall
          Firewall is stopped.
          Firewall is stopped.

          [root@apache opt]# sudo service --status-all | grep Firewall
          Firewall is stopped.
          Firewall is stopped.
          [root@apache opt]#

          [Wed Nov 12 14:24:22 2008] [error] (111)Connection refused: proxy: ajp: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed

          The error mentions that is is trying to connect to 8009 on localhost from apache. Could it be that is has the wrong name? Shouldn't it be connecting to jboss2:8009? Did we put localhost where it should really be something else like jboss2?

          MikeD

          • 2. Re: mod_cluster installation
            brian.stansberry

            When you start JBoss AS 4.2 or later it binds its services to localhost by default. You need to use the -b switch to tell it to bind to a different interface, e.g.

            ./run.sh -c all -b jboss2

            The AS-side mod_cluster will tell the apache side whatever interface has been bound.