Welcome to Sarge's personal blog on Sargeway.com. Here's my place to share my onion with the world (Bob!). The views expressed herein are my own (unless otherwise stated).
ColdFusion 8: 64-bit Sun JSWS Connector
This week I had a customer install ColdFusion 8 on 64-bit Solaris 10 and trying to bind the web server connector to a 64-bit Sun Java System Web Server instance. Long story short, the customer used the cf_connectors.sh shell script to properly configure the connector settings in the JSWS obj.conf and magnus.conf. However, the JSWS threw errors on startup similar to:
Back to top
# Sun Java System Web Server 7.0U1 B06/12/2007 23:45
failure: CORE2253: Error running Init function load-modules: dlopen of /opt/jrun4/lib/wsconfig/1/libjrun_nsapi.so failed (ld.so.1: webservd: fatal: libgcc_s.so.1: open failed: No such file or directory)
failure: server initialization failed
# Sun Java System Web Server 7.0U1 B06/12/2007 23:45
failure: CORE2253: Error running Init function load-modules: dlopen of /opt/jrun4/lib/wsconfig/1/libjrun_nsapi.so failed (ld.so.1: webservd: fatal: /usr/sfw/lib/sparcv9/libgcc_s.so.1/libgcc_s.so.1: Not a
directory)
failure: server initialization failed
failure: CORE2253: Error running Init function load-modules: dlopen of /opt/jrun4/lib/wsconfig/1/libjrun_nsapi.so failed (ld.so.1: webservd: fatal: libgcc_s.so.1: open failed: No such file or directory)
failure: server initialization failed
# Sun Java System Web Server 7.0U1 B06/12/2007 23:45
failure: CORE2253: Error running Init function load-modules: dlopen of /opt/jrun4/lib/wsconfig/1/libjrun_nsapi.so failed (ld.so.1: webservd: fatal: /usr/sfw/lib/sparcv9/libgcc_s.so.1/libgcc_s.so.1: Not a
directory)
failure: server initialization failed
The solution is to modify the LD_LIBRARY_PATH_64 variable in the JSWS instance's startserv script. Append the correct path to the directory containing the 64-bit gcc install. For example for my server configuration gcc is installed to /usr/sfw/lib/sparcv9, so my LD_LIBRARY_PATH_64 entry looks like:
LD_LIBRARY_PATH_64="${SERVER_LIB_PATH_64}:${SERVER_JVM_LIBPATH}:${LD_LIBRARY_PATH_64}:/usr/sfw/lib/sparcv9"; export LD_LIBRARY_PATH_64


http://www.youtube.com/user/EdTada
http://www.youtube.com/user/CindyGarman
http://www.youtube.com/JackGillOnline