21 Apr 2009

A small reminder to myself that a default installation of CentOS 5.3 does not, by default, include the Compat packages. The effect this has on Web Server is an installation that appears to have succeeded (bits are laid down on disk), but is completely unconfigured (no default instance or Admin instance are created). Re-running the installation and actually reading the screens shows an error:

     Product                     Status                Information
 1.  Sun Java System Web Server  Configuration Failed  View log file

Looking at the error logs shows this:

FINEST: Checking availability of common tokens...
Apr 21, 2009 5:10:35 AM com.sun.web.admin.configurator.ConfigureServer main
WARNING: /opt/webserver/lib/libadminjni.so: libstdc++.so.5: cannot open shared
object file: No such file or directory
java.lang.UnsatisfiedLinkError: /opt/webserver/lib/libadminjni.so: libstdc++.so.
5: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)

What this means is that the Web Server installer (or the post install configuration utility) has a dependency on libstdc++.so.5. CentOS 5.3 provides this in the not-installed-by-default compat-libstdc++-33 package. Install that package:

yum -y install compat-libstdc++-33

and then re-run the Web Server installer. All will now work.

Update: It seems worth noting that this compat lib appears needed to run the server as well, not just the installer. So, hey. FYI.

2 comments (+add yours?)

by Anonymous on Sun, 06/21/2009 - 12:17

I had the problem mentioned by you and executed the above yum.

After instaletion I noticed that Configuration Failed, this time because of a java exception:

WARNING: /opt/webserver7/lib/libadminjni.so: /opt/webserver7/lib/libadminjni.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
java.lang.UnsatisfiedLinkError: /opt/webserver7/lib/libadminjni.so: /opt/webserver7/lib/libadminjni.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1778)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1703)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1028)
at com.sun.web.admin.util.Util.loadAdminJNILibrary(Util.java:147)
at com.sun.web.admin.util.ProcessRunner.(ProcessRunner.java:189)
at com.sun.web.admin.util.PlatformUtil.validateJavaHome(PlatformUtil.java:5
at com.sun.web.admin.configurator.ConfigureServer.configureServer
at com.sun.web.admin.configurator.ConfigureServer.main(ConfigureServer.java
Jun 21, 2009 8:39:46 PM com.sun.web.admin.configurator.ConfigureServer
FINE: ADMIN2001: Error occurred during configuration of server instances
Jun 21, 2009 8:39:46 PM com.sun.web.installer.web.actions.PostInstall_core
WARNING: The backend configurator failed
Seems to be something to do with the loading of a 32 bit lib instead of 64 bit.

So far I have no solution for this problem and was not able to successsfully install Web server 7.

by sofyan on Tue, 06/23/2009 - 12:23

Huh. I haven't had that problem.

I specfically downloaded the 64-bit version of Web Server from Sun, I made sure I had compat-libstdc++-33 installed, and things work for me. I have this combination installed on multiple 64-bit CentOS 5.3 instances.

Are you positive you downloaded the 64-bit version of Web Server?

Post new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.