Add the following lines to the startup script for the Sun Java System Web Server:
LD_PRELOAD=/usr/lib/libstdc++-libc6.2-2.so.3 export LD_PRELOAD