Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / May 2008



Tip: Looking for answers? Try searching our database.

ELF CLASS error after mod_jrun22.so rebuild

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JuniperDan - 18 Apr 2008 23:47 GMT
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
InfoCon_Brian - 14 May 2008 22:38 GMT
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.
JuniperDan - 15 May 2008 15:40 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.