users@glassfish.java.net

Glassfish loadbalancer breaks Sun Web server 7 with Java exception

From: <glassfish_at_javadesktop.org>
Date: Tue, 01 Jul 2008 02:03:36 PDT

HI

I have been trying to set the glassfish loadbalancing to work with Sun Java Web server for almost a week now, but i'm stuck and need you help.

The installation is on two Dell test machines Server1 and Server2.

Both are running Debian Etch. Server1 is the glassfish DAS and also Sun java web server. Server2 is just a glassfish node agent for clustering. The following packages were installed.

glassfish-installer-v2ur2-b04-linux.jar
sun-java5
Sun Java web server 7 update 3
aslb-9.1-UR1-b1.jar and also tried aslb-9.1.1-b1.jar as load balancer plugin.

I have followed all the instructions from the documentation and everything works up to clusterting. Loadbalancing does not work and infact, web server instance just wont start giving the following java exception error:

 ADMIN3603: Error while starting the server:
failure: CORE4007: Internal error: Unexpected Java exception thrown (java.lang.UnsatisfiedLinkError: /usr/local/glassfish/lib/lbplugin/lib/libns-httpd40.so: /usr/local/glassfish/lib/lbplugin/lib/libns-httpd40.so: undefined symbol: __ti6Thread, /usr/local/glassfish/lib/lbplugin/lib/libns-httpd40.so: /usr/local/glassfish/lib/lbplugin/lib/libns-httpd40.so: undefined symbol: __ti6Thread), stack: java.lang.UnsatisfiedLinkError: /usr/local/glassfish/lib/lbplugin/lib/libns-httpd40.so: /usr/local/glassfish/lib/lbplugin/lib/libns-httpd40.so: undefined symbol: __ti6Thread
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:993)
at com.iplanet.ias.security.auth.realm.webcore.NativeRealm.<clinit>(NativeRealm.java:47)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at com.sun.enterprise.security.auth.realm.Realm.doInstantiate(Realm.java:187)
at com.sun.enterprise.security.auth.realm.Realm.instantiate(Realm.java:174)
at com.iplanet.ias.security.RealmConfig.createRealms(RealmConfig.java:88)
at com.sun.webserver.init.J2EERunner.confPreInit(J2EERunner.java:258)
failure: CORE3186: Failed to set configuration
failure: server initialization failed
                
If i change the LD_LIBRARY_PATH variable to use libns-httpd.so from the web server lib directory, the following error is thrown:

Sun Java System Web Server 7.0U3 B06/16/2008 09:44
info: CORE3016: daemon is running as super-user
info: reports: Initializing lbplugin BuildId: A701212-164111
info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0_15] from [Sun Microsystems Inc.]
catastrophe: CORE3260: Server crash detected (signal SIGSEGV)
failure: server initialization failed

So, i' basically stuck and any help would be greatly appreciated.

Thanks
[Message sent by forum member 'neo_praveen83' (neo_praveen83)]

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