Hi,
I have configured Apache 2.2 on the top of two JBOSS server
using mod_jk.
When I hit the URL of application through apache server
http://localhost/Application then it alternatively get the login page from
the 2 JBOSS servers That's OK.
But when I am login into my application then I am getting error
/j_spring_security_check HTTP/1.1" 302 - in access.log file of apache
server.
One more thing.. If I stop any one JBOSS server then I am able
to login through apache server in my application and it works fine, But I
want both JBOSS server
should be running.
The configuration in worker.properties file is
# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
#
worker.list=loadbalancer,status
# Define Node1
# modify the host as your host IP or DNS name.
worker.node1.port=8009
worker.node1.host=192.168.12.245
worker.node1.type=ajp13
worker.node1.lbfactor=1
worker.node1.prepost_timeout=10000 #Not required if using ping_mode=A
worker.node1.connect_timeout=10000 #Not required if using ping_mode=A
worker.node1.ping_mode=A #As of mod_jk 1.2.27
# worker.node1.connection_pool_size=10 (1)
# Define Node2
# modify the host as your host IP or DNS name.
worker.node2.port=8009
worker.node2.host=192.168.2.19
worker.node2.type=ajp13
worker.node2.lbfactor=1
worker.node2.prepost_timeout=10000 #Not required if using ping_mode=A
worker.node2.connect_timeout=10000 #Not required if using ping_mode=A
worker.node2.ping_mode=A #As of mod_jk 1.2.27
# worker.node1.connection_pool_size=10 (1)
# Load-balancing behaviour
worker.loadbalancer.type=lb
worker.loadbalancer.balance_workers=node1,node2
# Status worker for managing load balancer
worker.status.type=status
In server.xml file I have added
JBOSS1: <Engine name="jboss.web" defaultHost="localhost"
jvmRoute="node1">
JBOSS2 : <Engine name="jboss.web" defaultHost="localhost"
jvmRoute="node2">
Please help me if I am doing any mistake
Thanks & Regards
Mohan Singh