Meta

  1. Recent blog posts

  1. Papers and HowTos

Recent output

  1. Sun Web Server on CentOS 5.x

  2. Tue, 04/21/2009 - 09:30 — jmccabe

    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.

     

    Comments

    Still problems

    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
    (ConfigureServer.java:530)
    at com.sun.web.admin.configurator.ConfigureServer.main(ConfigureServer.java
    Jun 21, 2009 8:39:46 PM com.sun.web.admin.configurator.ConfigureServer
    printFailedMessage
    FINE: ADMIN2001: Error occurred during configuration of server instances
    Jun 21, 2009 8:39:46 PM com.sun.web.installer.web.actions.PostInstall_core
    configureServer
    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.

    Huh. I haven't had that

    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?

Small Things

  1. Monthly archive