6 Replies Latest reply on May 18, 2011 8:27 PM by Rosh Margappa

    JBoss AS 6.0.0.Final run.bat gives NoClassDefFoundError in Windows

    Ben Lemmond Newbie

      This is my first experience with JBoss and it's not going too well so far. When I execute "run.bat" from the "C:\jboss-6.0.0.Final\bin" directory I get the results below.

       

      My env vars are as follows:

      JAVA_HOME=C:\java\jdk1.6.0_23

      JBOSS_HOME=C:\jboss-6.0.0.Final

      PATH=C:\java\jdk1.6.0_23\bin;C:\java\jdk1.6.0_23\jre\bin

       

      Running Windows 7 x64 Professional.

       

      I've looked all morning on a solution before posting. No luck.

       

      Please help.

       

      Thanks,

      Ben

       

       

       

      C:\jboss-6.0.0.Final\bin>run.bat

      Calling C:\jboss-6.0.0.Final\bin\run.conf.bat

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

       

        JBoss Bootstrap Environment

       

        JBOSS_HOME: C:\jboss-6.0.0.Final

       

        JAVA: C:\java\jdk1.6.0_23\bin\java

       

        JAVA_OPTS: -Dprogram.name=run.bat -Xms128M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun

      .rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -server

       

        CLASSPATH: C:\java\jdk1.6.0_23\lib\tools.jar;C:\jboss-6.0.0.Final\bin\run.jar

       

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

       

      Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/logmanager/Logger$AttachmentKey

              at org.jboss.logging.JBossLogManagerProvider.<clinit>(JBossLogManagerProvider.java:36)

              at org.jboss.logging.LoggerProviders.findProvider(LoggerProviders.java:33)

              at org.jboss.logging.LoggerProviders.<clinit>(LoggerProviders.java:28)

              at org.jboss.logging.Logger.getLogger(Logger.java:2164)

              at org.jboss.logging.Logger.getLogger(Logger.java:2189)

              at org.jboss.bootstrap.impl.base.server.AbstractServer.<clinit>(AbstractServer.java:69)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

              at java.lang.Class.newInstance0(Class.java:355)

              at java.lang.Class.newInstance(Class.java:308)

              at org.jboss.bootstrap.api.factory.SecurityActions$1.run(SecurityActions.java:95)

              at java.security.AccessController.doPrivileged(Native Method)

              at org.jboss.bootstrap.api.factory.SecurityActions.newInstance(SecurityActions.java:75)

              at org.jboss.bootstrap.api.factory.GenericFactory.createInstance(GenericFactory.java:97)

              at org.jboss.bootstrap.api.factory.ServerFactory.createServer(ServerFactory.java:84)

              at org.jboss.Main.boot(Main.java:439)

              at org.jboss.Main$1.run(Main.java:805)

              at java.lang.Thread.run(Thread.java:662)