users@glassfish.java.net

Re: desperate with the load balancer

From: Saloustros Georgios <gesalous_at_gmail.com>
Date: Tue, 4 Dec 2007 14:40:11 +0200

I finally discovered the bug.
I am posting it to this list in case someone newbie like me has the same
problem and spends 4 days for this silly bug.
Application server : glassfish v2 b58g
Web-Server: sun web server 6.1 service pack 5
First of all the instructions at
https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster are not
exactly correct they need to be refreshed.
Bug 1.
In the
https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html it
says:

 9.Append the following lines to <websrvr_instance_dir>/config/magnus.conf
 ##BEGIN EE LB Plugin Parameters
Init fn="load-modules"
shlib="<websrvr_install_dir>/plugins/lbplugin/bin/libpassthrough.so"
funcs="init-passthrough,service-passthrough,name-trans-passthrough"
Thread="no" Init fn="init-passthrough"
 ##END EE LB Plugin Parameters
The above lines need to be before following line.
 Init fn="load-modules" shlib=".../libj2eeplugin.so"
shlib_flags="(global|now)"
Replace <websrvr_install_dir> with your Web Server installation directory.

Wrong! This line must be after the line at magnus.conf

##BEGIN EE LB Plugin Parameters
Init fn="load-modules"
shlib="<websrvr_install_dir>/plugins/lbplugin/bin/libpassthrough.so"
funcs="init-passthrough,service-passthrough,name-trans-passthrough"
Thread="no" Init fn="init-passthrough"
 ##END EE LB Plugin Parameters

or else you 'll get an error at web server startup

Bug 2.
There must not be any white space at the obj.conf file!!! else the
sun-web-server doesn't load the lbplugin. Unbelievable!
I think the webmaster should refresh the page at
https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html

GS















2007/12/4, glassfish_at_javadesktop.org <glassfish_at_javadesktop.org>:
>
> loadbalancer.xml is correct. It has clusterjsp module. No issues with
> that.
>
> However webserver try to look under docroot directory for that file. It
> looks like loadbalancer.xml is not loaded. Please try stop/start
> webserver. This will ensure loadbalancer.xml is loaded.
>
> If that does not work, please provide your obj.conf and magnus.conf.
>
> Thanks,
> Kshitiz
> [Message sent by forum member 'kshitiz_saxena' (kshitiz_saxena)]
>
> http://forums.java.net/jive/thread.jspa?messageID=248392
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>