-
1. Re: mod_cluster installation
mdickson Nov 13, 2008 11:37 AM (in response to 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 Nov 13, 2008 12:43 PM (in response to mdickson)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.