CF7 Remote CFC throwing strange error (libstdc++ error)

I know, CF7! that's like ancient.  But when we started developing this application CF8 was not out yet and we never felt the need to upgrade (which is changing now that CF9 is available).

I've been doing a lot of Flex learning lately for a new project of mine, so I've been primarily blogging about my experiences with that, but I ran into an issue today that I thought I'd document in case I (or someone else) run into this again.  This little trinket cost me a couple of hours, which finally boiled down to a very quick and easy fix.

The setup: ColdFusion 7 Standard on RedHat ES 5

The issue: Trying to consume a CFC webservice resulted in the following error:

coldfusion.jsp.CompilationFailedException: Errors reported by Java compiler: /opt/coldfusionmx7/runtime/bin/jikesw: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory

I did what all good Linux admins do, updated the libraries, resolved dependancies, installed the dev libraries, etc... still no juice.  Finally I stumbled on this post and it his suggestion worked perfectly.  I simply had to create a symbolic link to the library so that CF thought it was using the correct one:

ln -s /usr/lib/libstdc++-libc6.2-2.so.3 /usr/lib/libstdc++-libc6.1-1.so.2

 

Comments

Leave a comment

Tell us about yourself
(required field)
(required field)
Comment and preferences
Leave this field empty: