ELF CLASS error after mod_jrun22.so rebuild - Cold Fusion

This is a discussion on ELF CLASS error after mod_jrun22.so rebuild - Cold Fusion ; Installing CF8 multi-server on a Dell PowerEdge server (64 bit) running Linux Redhat Enterprise V5 Installed XAMPP for Linux 1.6.6 (Apache 2.2.8, etc.) After running /opt/jrun4/bin/cf-connector.sh all goes well and the new module mod_jrun22.so is built and included into Apache's ...

+ Reply to Thread
Results 1 to 4 of 4

ELF CLASS error after mod_jrun22.so rebuild

  1. Default ELF CLASS error after mod_jrun22.so rebuild

    Installing CF8 multi-server on a Dell PowerEdge server (64 bit) running Linux
    Redhat Enterprise V5

    Installed XAMPP for Linux 1.6.6 (Apache 2.2.8, etc.)

    After running /opt/jrun4/bin/cf-connector.sh all goes well and the new module
    mod_jrun22.so is built and included into Apache's startup file httpd.conf, but
    when Apache attempts to restart, get the message below (the last few lines of
    cf-connector's log file at /opt/jrun4/Connectorinstall.txt).

    I have tried both the 32- and 64-bit versions of CF8, I've tried running
    wsconfig directly using the -ws32 switch. I now have about 25 copies of
    httpd.conf!!!

    If I understand the error correctly, mod_jrun22.so is being built as a 64-bit
    object and httpd is needing a 32-bit object.

    I have examined every instance of LD_LIBRARY_PATH in the source and build
    files to see if there is a 64-bit library referenced and haven't found any.

    I'm really hoping someone out there knows what I need to do to fix this.

    Thanks in advance!

    Dan Parchman, IT Technician
    Juniper Systems, Inc.
    www.junipersys.com

    Error message:

    --------------------------------------------------------------------------------
    -------------------

    httpd: Syntax error on line 511 of /opt/lampp/etc/httpd.conf: Cannot load
    /opt/jrun4/lib/wsconfig/1/mod_jrun22.so into server: /Error running
    "/opt/lampp/bin/apachectl restart": exit code was 1
    Error restarting Apache server. The web server must be restarted to complete
    this operation.
    opt/jrun4/lib/wsconfig/1/mod_jrun22.so: wrong ELF class: ELFCLASS64


  2. Default Re: ELF CLASS error after mod_jrun22.so rebuild

    I am running the ColdFusion developer's 64-bit edition version 8 on the same
    machine
    running Fedora, I got the same problem.

    I tried the Prerelease version. I notified the prerelease staff that I was
    getting
    a floating point exception, about two-three months ago.

    Apparently, the developers ignored the problem.


  3. Default Re: ELF CLASS error after mod_jrun22.so rebuild

    Brian,

    I have learned that the compiler will build a 32- or 64-bit object depending
    on the ELFCLASS of the first module it uses during the compile, which in my
    (and yours, I suppose) case is 64 bits.

    The workaround I found: unzip the wsconfig.jar into a folder:

    cd %PathToColdfusion8%/runtime/lib
    unzip -d wsconfig_unzip wsconfig.zip

    Then navigate into wsconfig_unzip/connectors and find the prebuilt mod that
    you need. In my case it was at:
    wsconfig_unzip/connectors/apache/intel-linux/prebuilt/mod_jrun22.so

    Copy the mod to:
    %PathToColdfusion8%/runtime/lib/wsconfig/1/mod_jrun22.so

    Start (or restart) ColdFusion and you should be good to go.




  4. Default Re: ELF CLASS error after mod_jrun22.so rebuild

    Quote Originally Posted by Application Development View Post
    Brian,

    I have learned that the compiler will build a 32- or 64-bit object depending
    on the ELFCLASS of the first module it uses during the compile, which in my
    (and yours, I suppose) case is 64 bits.

    The workaround I found: unzip the wsconfig.jar into a folder:

    cd %PathToColdfusion8%/runtime/lib
    unzip -d wsconfig_unzip wsconfig.zip

    Then navigate into wsconfig_unzip/connectors and find the prebuilt mod that
    you need. In my case it was at:
    wsconfig_unzip/connectors/apache/intel-linux/prebuilt/mod_jrun22.so

    Copy the mod to:
    %PathToColdfusion8%/runtime/lib/wsconfig/1/mod_jrun22.so

    Start (or restart) ColdFusion and you should be good to go.
    ========
    I tried that. Sorry I still have the same problem. May be I should turn off the SELINUX

    Pleae advise how do you do it?

    Thanks

+ Reply to Thread