On 29/01/2013 6:16 AM, "Shashi" <shashi.kumar280@xxxxxxxxx> wrote:
>
> Hi Everyone,
>
> Need help from everyone:
>
> I have 2 tomcat instances 5.5.26 and apache instance 2.2.23 running on RHEL 64 bit server. I was able to point apache to one of the tomcat instance by using mod_jk 1.2.31 but now when i am trying to loadbalance 2 tomcats from apache i am getting error:
>
> Below is my worker.properties file:
>
> # workers.properties
> #
> worker.list=balancer,stat
>
> worker.tomcat1.port=11009
> worker.tomcat1.host=localhost
> worker.tomcat1.type=ajp13
> worker.tomcat1.lbfactor=10
>
> worker.tomcat2.port=8009
> worker.tomcat2.host=localhost
> worker.tomcat2.type=ajp13
> worker.tomcat2.lbfactor=10
>
> worker.balancer.type=lb
> worker.balancer.balance_workers=tomcat1,tomcat2
>
> worker.stat.type=status
>
>
> and i made the following change in my httpd.conf
>
> JkMount / balancer
> JkMount /status stat
>
> Now i am getting the below in my log:
>
>
> [Mon Jan 28 13:29:36.266 2013] [15386:47339466453872] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/status=stat' source 'JkMount'
> [Mon Jan 28 13:29:36.266 2013] [15386:47339466453872] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/=balancer' source 'JkMount'
> [Mon Jan 28 13:29:36.266 2013] [15386:47339466453872] [debug] jk_map_to_storage::mod_jk.c (3617): no match for /HelloWorld/HelloWorld.jsp found
> [Mon Jan 28 13:32:20.089 2013] [15382:47339466453872] [debug] map_uri_to_worker_ext::jk_uri_worker_map.c (1036): Attempting to map URI '/status' from 2 maps
> [Mon Jan 28 13:32:20.089 2013] [15382:47339466453872] [debug] find_match::jk_uri_worker_map.c (850): Attempting to map context URI '/status=stat' source 'JkMount'
> [Mon Jan 28 13:32:20.089 2013] [15382:47339466453872] [debug] find_match::jk_uri_worker_map.c (873): Found an exact match '/status=stat'
> [Mon Jan 28 13:32:20.090 2013] [15382:47339466453872] [debug] jk_handler::mod_jk.c (2471): Into handler jakarta-servlet worker=stat r->proxyreq=0
> [Mon Jan 28 13:32:20.090 2013] [15382:47339466453872] [debug] wc_get_worker_for_name::jk_worker.c (116): did not find a worker stat
> [Mon Jan 28 13:32:20.090 2013] [15382:47339466453872] [info] jk_handler::mod_jk.c (2635): Could not find a worker for worker name=stat
>
>
>
> Please help me out
> Thanks,
> Shashi.
Why dont you read the documentation first and then ask if anything not clear?
http://tomcat.apache.org/connectors-doc/generic_howto/loadbalancers.html
It is all explained in details.