users@glassfish.java.net

Problem withConfiguting Loadbalancer

From: <glassfish_at_javadesktop.org>
Date: Fri, 06 Feb 2009 07:29:12 PST

Hello,

I have installed Glassfish Cluster with two instances. They are running fine.

I have installed Sun Java Web server 7 for loadbalancing.

My file magnus.conf:

##BEGIN EE LB Plugin Parameters
Init fn="load-modules" shlib="/home/sun/webserver7/plugins/lbplugin/bin/libpassthrough.so" funcs="init-passthrough,service-passthrough,name-trans-passthrough" Thread="no"
Init fn="init-passthrough"
##END EE LB Plugin Parameters
Init fn="load-modules" shlib="libj2eeplugin.so" shlib_flags="(global|now)"
Init fn="load-modules" shlib="libdavplugin.so" funcs="init-dav,ntrans-dav,pcheck-dav,service-dav" shlib_flags="(global|now)"
Init fn="init-dav" LateInit="yes"



My file obj.conf

<Object name="default">
AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
NameTrans fn="name-trans-passthrough" name="lbplugin" config-file="/opt/webserver7/admin-server/config/loadbalancer.xml"
NameTrans fn="restart" from="/" uri="/admingui/"
NameTrans fn="ntrans-j2ee" name="j2ee"
PathCheck fn="unix-uri-clean"
PathCheck fn="check-acl" acl="default"
PathCheck fn="find-pathinfo"
PathCheck fn="find-index-j2ee"
PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
ObjectType fn="type-j2ee"
ObjectType fn="type-by-extension"
ObjectType fn="force-type" type="text/plain"
Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
Service method="TRACE" fn="service-trace"
Error fn="error-j2ee"
AddLog fn="flex-log"
</Object>

<Object name="j2ee">
Service fn="service-j2ee" method="*"
</Object>

<Object name="es-internal">
PathCheck fn="check-acl" acl="es-internal"
</Object>

<Object name="cgi">
ObjectType fn="force-type" type="magnus-internal/cgi"
Service fn="send-cgi"
</Object>

<Object name="send-precompressed">
PathCheck fn="find-compressed"
</Object>

<Object name="compress-on-demand">
Output fn="insert-filter" filter="http-compression"
</Object>
<Object name="lbplugin">
ObjectType fn="force-type" type="magnus-internal/lbplugin"
PathCheck fn="deny-existence" path="*/WEB-INF/*"
Service type="magnus-internal/lbplugin" fn="service-passthrough"
Error reason="Bad Gateway" fn="send-error" uri="$docroot/badgateway.html"
</Object>



And this is my file loadbalancer.xml:

<!DOCTYPE loadbalancer PUBLIC "-//Sun Microsystems Inc.//DTD Sun ONE Application Server 7.1//EN" "sun-loadbalancer_1_2.dtd">
<loadbalancer>
    <cluster name="gbs-cluster" policy="round-robin">
        <instance name="gbsInstance1" enabled="true" disable-timeout-in-minutes="60" listeners="http://172.16.69.13:38080" weight="100"/>
        <instance name="gbsInstance2" enabled="true" disable-timeout-in-minutes="60" listeners="http://172.16.69.10:38080" weight="100"/>
        <web-module context-root="clusterjsp" enabled="true" disable-timeout-in-minutes="60" error-url="sun-http-lberror.html" />
        <health-checker url="/" interval-in-seconds="10" timeout-in-seconds="30" />
    </cluster>
    <property name="reload-poll-interval-in-seconds" value="60"/>
    <property name="response-timeout-in-seconds" value="30"/>
    <property name="https-routing" value="true"/>
    <property name="require-monitor-data" value="false"/>
    <property name="active-healthcheck-enabled" value="false"/>
    <property name="number-healthcheck-retries" value="3"/>
    <property name="rewrite-location" value="true"/>
</loadbalancer>




When I try to start the webserver I get these errors in web console and logs:

[i][b]Sun Java System Web Server 7.0-Technology-Preview-3 B09/13/2006 13:14
failure: CORE2253: Error running Init function load-modules: dlopen of /home/sun/webserver7/plugins/lbplugin/bin/libpassthrough.so failed (libicuuc.so.2: cannot open shared object file: No such file or directory)
failure: server initialization failed[/b][/i]


I Configured from these URLs: https://glassfish.dev.java.net/javaee5/build/GlassFish_LB_Cluster.html and http://blogs.sun.com/pjjairath/entry/installing_and_configuring_glassfish_http

My Linux server OS details (uname -a)

[b]Linux pumalinsvr2 2.6.5-7.312-smp #1 SMP Fri Jun 6 13:44:33 UTC 2008 i686 i686 i386 GNU/Linux[/b]

I have searched in related posts and tried all the options, but I am not able to fix the problem.

Could you help me?


Thanks in advance, Ram
[Message sent by forum member 'legend_ram' (legend_ram)]

http://forums.java.net/jive/thread.jspa?messageID=330540