1 Reply Latest reply: Mar 8, 2012 5:43 AM by bram pintelon RSS

    asadmin command fails

    bram pintelon
      Hey All,

      I have a weird problem. I installed a new glassfish server trough ssh.

      I unzipped the folder in $ORACLE_BASE/gfs1. This made a new folder called glassfish3, with all of the contents inside the folder.

      I installed the JDK 7u3, also unzipped the folder. Then I set the JAVA_HOME en PATH variables to

      echo $JAVA_HOME

      echo $PATH

      When I run ./asadmin start-domain domain1, I get the following error.

      ./asadmin start-domain domain1
      Exception in thread "main" java.lang.NoClassDefFoundError: com.sun.enterprise.admin.cli.AsadminMain
      at java.lang.Class.initializeClass(libgcj.so.7rh)
      Caused by: java.lang.ClassFormatError: com.sun.enterprise.module.ModulesRegistry (unrecognized class file version)
      at java.lang.VMClassLoader.defineClass(libgcj.so.7rh)
      at java.lang.ClassLoader.defineClass(libgcj.so.7rh)
      at java.security.SecureClassLoader.defineClass(libgcj.so.7rh)
      at java.net.URLClassLoader.findClass(libgcj.so.7rh)
      at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
      at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
      at java.lang.Class.forName(libgcj.so.7rh)
      at java.lang.Class.initializeClass(libgcj.so.7rh)

      And there it stops... :(

      I'm running OEL 5.6 64-bit with JDK 7U3.

      If I do a search for libgcj.so.7rh, I have 4 hits:
      locate libgcj.so.7rh

      Edited by: Bram Pintelon on 7-mrt-2012 12:31