standalone mode with mod_jk

Latest response

Hi all,
I'm trying to migrate EAP 5.2 to EAP 6.2
Started with standalone mode.
Goal is :
1- Creating two jboss instance in a box (Done)
2- Configuring apache mod_jk to load balance to these instance (working on this still)

Two instance are working properly when i connect them directly with 8080 and 8180 http ports .
When i stopped one of them , i can connect the application over apache. Mod_jk redirects
the request to the working instance using ajp ports .

The problem is when i run both instances, application seems to be start but interrupted with
"Service finished with status=400 for worker=timtest" mod_jk log entry.
No error entry in jboss logs.

I start the server1 node with following command
./standalone.sh -Djboss.node.name=server1 -server-config=standalone-ha.xml -b 0.0.0.0
and second (server2) node
./standalone.sh -Djboss.node.name=server2 -Djboss.socket.binding.port-offset=100 -server-config=standalone-ha.xml -b 0.0.0.0

mod_jk uriworkermap.properties file includes

/ebnet2=timtest
/ebnet2/=timtest
/ebirt2=timtest
/ebirt2/
=timtest

entry which is that ebnet2 and ebirt2 are applications contexts and timtest is worker.

mod_jk worker.properties file includes
worker.list=loadbalancer,timtest,compeople,status
.
.
.

Define server1

worker.server1.port=8009
worker.server1.host= 172.16.4.112
worker.server1.type=ajp13
worker.server1.lbfactor=1
worker.server1.ping_mode=A #As of mod_jk 1.2.27
worker.server1.connection_pool_timeout=600

Define server2

worker.server2.port=8109
worker.server2.host= 172.16.4.112
worker.server2.type=ajp13
worker.server2.lbfactor=1
worker.server2.ping_mode=A #As of mod_jk 1.2.27
worker.server2.connection_pool_timeout=600

worker.timtest.balance_workers=server1,server2
.
.
.

Need help!
Thanks in advance

Göksel Canerli

Responses

Hi

Can you review the steps given in https://access.redhat.com/solutions/395943. If you still see issues I'd suggest you raise a case with us and attach the full logs and configuration you are using.

Thanks
Mustafa

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.