2 Replies Latest reply on Jun 17, 2009 2:49 AM by groovie

    JBOSSAS Install problem - Do I have to use Sun Java?

      Hi,

      I'm trying to install JBossAS on a Red Hat box. I'm having troubles with the install. I've been looking around the forum and haven't seen this same problem anywhere.

      But is it true that I need to use the Sun version of Java?


      # ./run.sh
      =========================================================================

      JBoss Bootstrap Environment

      JBOSS_HOME: /jboss/jboss-5.1.0.GA

      JAVA: java

      JAVA_OPTS: -Dprogram.name=run.sh -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true

      CLASSPATH: /jboss/jboss-5.1.0.GA/bin/run.jar

      =========================================================================

      Failed to boot JBoss:
      java.lang.ClassNotFoundException: javax.management.NotificationBroadcasterSupport not found in org.jboss.bootstrap.NoAnnotationURLClassLoader{urls=[], parent=gnu.gcj.runtime.SystemClassLoader{urls=[file:/jboss/jboss-5.1.0.GA/bin/run.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}}
      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.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.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 org.jboss.bootstrap.ServerLoader.createServer(ServerLoader.java:359)
      at org.jboss.bootstrap.ServerLoader.load(ServerLoader.java:336)
      at org.jboss.Main.boot(Main.java:215)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(libgcj.so.7rh)

        • 1. Re: JBOSSAS Install problem - Do I have to use Sun Java?
          peterj

          Yes, you need a certified JDK to run JBoss AS. The GNU(?) JDK that comes with most Linux distros will not work. However, the OpenJDK that is bundled with recent Linux distros works just fine. Or you can install and use a Sun JDK.

          Also, make sure you set the JAVA_HOME env var.

          • 2. Re: JBOSSAS Install problem - Do I have to use Sun Java?
            groovie

            Salut,

            you are using a wrong JRE, coming from GNU-java (also known
            als gcj). Try to install a SUN-JDK with via rpm and make sure, that
            the run.sh will find firstly the original Sun-JAVA.

            > Failed to boot JBoss:
            > ...... ClassLoader{urls=[], > parent=gnu.gcj.runtime.SystemClassLoader

            GCJ is not exactly the same like SUN-JDK!