12 Replies Latest reply on Feb 20, 2012 3:31 PM by 832857

    Load Balancing-wrong ELF class: ELFCLASS64

      GlassFish 3.1.1
      Apache Webserver 2.2.x

      To configure the loadbalancing I followed the following link

      However Although the linux machine I am using is 32bit version I am having the following error.
      After google search, I have found many points referencing 64compile, but I have properly assigned the corrent flags and compiled it.

      +[root@bin]# ./apachectl start+
      httpd: Syntax error on line 419 of /usr/local/apacheHttpServer/conf/httpd.conf: Cannot load /usr/local/apacheHttpServer/modules/mod_loadbalancer.so into server: /usr/local/apacheHttpServer/modules/mod_loadbalancer.so: wrong ELF class: ELFCLASS64

      +[root@httpd-2.2.22]# file /usr/bin/file+
      +/usr/bin/file: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped+

      +[root@]# export+
      declare -x AS_HOME="/usr/local/glassfish-3.1.1/glassfish"
      declare -x CFLAGS="-m32"

      Besides that do I need the enable mod_jk for loadbalancing for glassfish App Serv, where mod_jk enabling is not mentioned in the link given above.

      Thanks in advance.