9 Replies Latest reply on Feb 22, 2006 2:37 AM by Srinivas Velidanda

    "Failed to boot JBoss" -- while starting JBoss server

    craty gs Newbie

      hi,

      i installed JBoss 4.0.2 and has set the required variables. i am working on windows xp platform. while starting the JBoss server i am getting the following error messages in the console. i am showing all the variable values as echoed. please check them out and help to find out solution.

      D:\jboss-4.0.2\bin>echo %JAVA_HOME%
      C:\j2sdk1.5.0

      D:\jboss-4.0.2\bin>echo %JBOSS_HOME%
      D:\jboss-4.0.2

      D:\jboss-4.0.2\bin>echo %PATH%
      D:\jboss-4.0.2\bin;C:\j2sdk1.5.0\jre\bin;C:\j2sdk1.5.0\bin;C:\WINDOWS\system32;C
      :\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\j2sdk1.5.0\bin;.;C:\Pro
      gram Files\PostgreSQL\8.0.0-beta4\bin;E:\java2;;;

      D:\jboss-4.0.2\bin>echo %JBOSS_CLASSPATH%
      D:\jboss-4.0.2\server\default\lib;D:\jboss-4.0.2\lib;

      D:\jboss-4.0.2\bin>run
      ===============================================================================
      .
      JBoss Bootstrap Environment
      .
      JBOSS_HOME: D:\jboss-4.0.2\bin\\..
      .
      JAVA: C:\j2sdk1.5.0\bin\java
      .
      JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
      .
      CLASSPATH: D:\jboss-4.0.2\server\default\lib;D:\jboss-4.0.2\lib;;C:\j2sdk1.5.0
      \lib\tools.jar;D:\jboss-4.0.2\bin\\run.jar
      .
      ===============================================================================
      .
      12:39:31,921 INFO [Server] Starting JBoss (MX MicroKernel)...
      12:39:31,921 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_
      4_0_2 date=200505022023)
      12:39:31,921 INFO [Server] Home Dir: D:\jboss-4.0.2
      12:39:31,921 INFO [Server] Home URL: file:/D:/jboss-4.0.2/
      12:39:31,921 INFO [Server] Library URL: file:/D:/jboss-4.0.2/lib/
      12:39:31,921 INFO [Server] Patch URL: null
      12:39:31,921 INFO [Server] Server Name: default
      12:39:31,937 INFO [Server] Server Home Dir: D:\jboss-4.0.2\server\default
      12:39:31,937 INFO [Server] Server Home URL: file:/D:/jboss-4.0.2/server/default
      /
      12:39:31,937 INFO [Server] Server Data Dir: D:\jboss-4.0.2\server\default\data
      12:39:31,937 INFO [Server] Server Temp Dir: D:\jboss-4.0.2\server\default\tmp
      12:39:31,937 INFO [Server] Server Config URL: file:/D:/jboss-4.0.2/server/defau
      lt/conf/
      12:39:31,937 INFO [Server] Server Library URL: file:/D:/jboss-4.0.2/server/defa
      ult/lib/
      12:39:31,937 INFO [Server] Root Deployment Filename: jboss-service.xml
      12:39:31,953 INFO [Server] Starting General Purpose Architecture (GPA)...
      12:39:32,156 WARN [BasicMBeanRegistry] javax.management.MBeanRegistrationExcept
      ion: preRegister() failed: [ObjectName='JMImplementation:type=MBeanServerDelegat
      e', Class=javax.management.MBeanServerDelegate (javax.management.MBeanServerDele
      gate@a352a5)]
      Failed to boot JBoss:
      java.lang.RuntimeException: Cannot create MBeanServer
      at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:224)
      at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServer
      BuilderImpl.java:56)
      at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory
      .java:316)
      at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFact
      ory.java:219)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:369)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
      at org.jboss.Main.boot(Main.java:195)
      at org.jboss.Main$1.run(Main.java:463)
      at java.lang.Thread.run(Thread.java:566)
      Caused by: javax.management.MBeanRegistrationException: preRegister() failed: [O
      bjectName='JMImplementation:type=MBeanServerDelegate', Class=javax.management.MB
      eanServerDelegate (javax.management.MBeanServerDelegate@a352a5)]
      at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
      icMBeanRegistry.java:707)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
      eanRegistry.java:197)
      at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:200)
      ... 8 more
      Caused by: javax.management.RuntimeOperationsException: Exception occured trying
      find the descriptors of the MBean
      at javax.management.modelmbean.ModelMBeanInfoSupport.getDescriptors(Mode
      lMBeanInfoSupport.java:445)
      at org.jboss.mx.modelmbean.ModelMBeanInvoker.initPersistence(ModelMBeanI
      nvoker.java:522)
      at org.jboss.mx.modelmbean.ModelMBeanInvoker.init(ModelMBeanInvoker.java
      :504)
      at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBea
      nInvoker.java:470)
      at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInv
      oker.java:639)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(Bas
      icMBeanRegistry.java:691)
      ... 10 more
      Caused by: java.lang.IllegalArgumentException: Descriptor Type is invalid
      ... 16 more
      Press any key to continue . . .

      thanx

        • 1. Re:
          Anil Saldanha Master

          do not set JBOSS_HOME. The script will figure it out. Just set JAVA_HOME

          • 2. Re:
            craty gs Newbie

            hi,

            i removed the JBOSS_HOME variable still getting the same error. plzz help

            thanx

            • 4. Re:
              craty gs Newbie

              i got the solution. from other forums i came to know that the JBoss 4.0.2 is incompatible with jdk 1.5 because jdk 1.5 has its own JMX implementation and thus the JBoss is working fine with jdk 1.4.2

              bye

              • 5. Re:
                Darran Lofthouse Master

                No that is not the answer, JBoss 4 runs fine with Java 5.

                Get rid of the JBOSS_CLASSPATH variable, the run script for JBoss will set all variables as required as long as the JAVA_HOME environment variable is set correctly. Also remove the JBoss bin folder from your PATH.

                Looking at your environment variables you have been making a lot of unnecessary changes, have you made any changes to the JDK installation or to the JBoss instalation.

                I have just downloaded the Sun 1.5.0 JDK and performed a clean installation, the only environment variable I have set is JAVA_HOME, I have then been able to start JBoss 4.0.2 without any problems. I have tried changing environment variables to match yours and nothing reproduces your problem.

                If you enter the command 'java -version' what is the actual response returned?

                • 6. Re:
                  Flush Newbie

                  I can confirm that Jboss 4.0.2 runs fine with Java 5. I'm running Windows XP SP2 with JDK 1.5.0_03.

                  • 7. Re:
                    craty gs Newbie


                    yes JBoss is working with jdk 1.5

                    I changed my java 1.5 beta version to final jdk 1.5 version and removed uneccessary fileds from the system variables. the usage of beta version might be the problem. thanx for the help

                    bye

                    • 8. Problem starting the JBoss server 4.0.2
                      Srinivas Velidanda Newbie

                      I am getting the following error while starting jboss 4.0.2 default server

                      Failed to boot JBoss:
                      java.lang.RuntimeException: Cannot create MBeanServer
                      at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:224)
                      at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServer
                      BuilderImpl.java:56)
                      at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory
                      .java:316) etc

                      I am using JDK1.4.2_10 set as JAVA_HOME.

                      Server starts perfectly if i set JAVA_HOME pointing to jdk1.5_04.

                      but I have to use jdk1.4.2_10 only for my development work.

                      Please let me know how to fix this.

                      • 9. Re:
                        Srinivas Velidanda Newbie

                        complete command prompt content is as follows for my earlier post

                        C:\jboss-4.0.2\bin>run
                        ===============================================================================
                        .
                        JBoss Bootstrap Environment
                        .
                        JBOSS_HOME: C:\jboss-4.0.2\bin\\..
                        .
                        JAVA: C:\j2sdk1.4.2_10\bin\java
                        .
                        JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
                        .
                        CLASSPATH: C:\j2sdk1.4.2_10\lib\tools.jar;C:\jboss-4.0.2\bin\\run.jar
                        .
                        ===============================================================================
                        .
                        13:12:36,423 INFO [Server] Starting JBoss (MX MicroKernel)...
                        13:12:36,423 INFO [Server] Release ID: JBoss [Zion] 4.0.2 (build: CVSTag=JBoss_
                        4_0_2 date=200505022023)
                        13:12:36,423 INFO [Server] Home Dir: C:\jboss-4.0.2
                        13:12:36,423 INFO [Server] Home URL: file:/C:/jboss-4.0.2/
                        13:12:36,423 INFO [Server] Library URL: file:/C:/jboss-4.0.2/lib/
                        13:12:36,423 INFO [Server] Patch URL: null
                        13:12:36,423 INFO [Server] Server Name: default
                        13:12:36,423 INFO [Server] Server Home Dir: C:\jboss-4.0.2\server\default
                        13:12:36,423 INFO [Server] Server Home URL: file:/C:/jboss-4.0.2/server/default
                        /
                        13:12:36,423 INFO [Server] Server Data Dir: C:\jboss-4.0.2\server\default\data
                        13:12:36,423 INFO [Server] Server Temp Dir: C:\jboss-4.0.2\server\default\tmp
                        13:12:36,423 INFO [Server] Server Config URL: file:/C:/jboss-4.0.2/server/defau
                        lt/conf/
                        13:12:36,423 INFO [Server] Server Library URL: file:/C:/jboss-4.0.2/server/defa
                        ult/lib/
                        13:12:36,423 INFO [Server] Root Deployment Filename: jboss-service.xml
                        13:12:36,439 INFO [Server] Starting General Purpose Architecture (GPA)...
                        Failed to boot JBoss:
                        java.lang.RuntimeException: Cannot create MBeanServer
                        at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:224)
                        at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServer
                        BuilderImpl.java:56)
                        at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory
                        .java:320)
                        at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFact
                        ory.java:223)
                        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:369)
                        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:315)
                        at org.jboss.Main.boot(Main.java:195)
                        at org.jboss.Main$1.run(Main.java:463)
                        at java.lang.Thread.run(Thread.java:534)
                        Caused by: javax.management.RuntimeOperationsException: Exception occured in Mod
                        elMBeanOperationInfo constructor
                        at javax.management.modelmbean.ModelMBeanOperationInfo.(ModelMBean
                        OperationInfo.java:278)
                        at org.jboss.mx.metadata.MBeanInfoConversion.toModelMBeanInfo(MBeanInfoC
                        onversion.java:122)
                        at org.jboss.mx.modelmbean.XMBean.(XMBean.java:214)
                        at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMB
                        eanRegistry.java:180)
                        at org.jboss.mx.server.MBeanServerImpl.(MBeanServerImpl.java:200)
                        ... 8 more
                        Caused by: java.lang.IllegalArgumentException: Invalid descriptor passed in para
                        meter
                        ... 13 more
                        Press any key to continue . . .


                        Please let me know how to fix this.

                        thanks,
                        Srinivas.