On 04.06.2009 16:42, dljohnson69 wrote:
> I now have a simple workers.properties and uri file with the latest 1.2.28
> redirector but no matter what I try I only get "incorrect function" returned
> to the browser.  1st error in log is
> [error] jk_shm_calculate_size::jk_shm.c (120): Could not get member list for
> lb worker from map

True, because you didn't add any members to the defined load balancer
worker named wlb. There's no balance_workers attribute there.

After you add some member via balance_workers, remember to define the
host and port for those members to.

> [error] validate::jk_lb_worker.c (1647): NULL parameters
> [error] wc_create_worker::jk_worker.c (163): validate failed for wlb
> 
> workers.properties
> worker.list=wlb
> 
> worker.wlb.type=lb
> worker.wlb.host=localhost
> worker.wlb.port=8010

host and port do not make sense for a load balancer. It doesn't send
requests directly to tomcat, instead it choses one of the (missing)
belance_workers and delegetes to them.

> uriworkermap.properties
> /admin/*=wlb
> /manager/*=wlb
> /jsp-examples/*=wlb
> /servlets-examples/*=wlb
> /ws/*=wlb
> 
> When I change the 'type' to ajp13 I get a 502 'bad gateway' error.  I've
> simplifed this as much as possible, tried IP instead of localhost and still
> cannot get this to serve up.  Any ideas?  

I'll look at your posted log snippet for this part.

Regards,

Rainer

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to