Re: Cannot connect 2 tomcat instances from Apache 2.2.23 using mod_jk 1.2.31

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 






On Tue, Jan 29, 2013 at 6:35 PM, Shashi <shashi.kumar280@xxxxxxxxx> wrote:
Hi Igor,

Thanks, I did read the documents and made changes as per the document suggested. Please look my worker.properties and the httpd.conf entries. Thats how its been suggested every where. But the problem is still it is not working.

Please advise.

Thanks,
Shashi


On Tue, Jan 29, 2013 at 10:30 AM, Igor Cicimov <icicimov@xxxxxxxxx> wrote:


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.



Send the complete mod_jk config with all directives. Are you using virtual hosts?


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux