4 Replies Latest reply on Apr 15, 2010 3:47 AM by jaikiran

    Jboss 5.1.0 installation errors

      Hi Friends,

      This is krishna, we are migrating from jboss4.2.2 to 5.1.0.Application was built successfull

      when we try to start the server we are getting the following errors.

      dont know what could be the problem .we have added all the jars still not able to fix the issue

      Thanks in advance

       

      12:57:46,427 ERROR [AbstractKernelController] Error installing to Start: name=JMXKernel state=Create
      java.lang.NoClassDefFoundError: org/jboss/mx/server/ServerConstants
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
              at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
              at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:71)
              at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:316)
              at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:219)
              at org.jboss.system.server.jmx.JMXKernel.start(JMXKernel.java:203)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
              at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
              at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
              at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
          at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
          at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
          at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
          at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
          at org.jboss.Main.boot(Main.java:221)
          at org.jboss.Main$1.run(Main.java:556)
          at java.lang.Thread.run(Thread.java:595)
      Failed to boot JBoss:
      java.lang.IllegalStateException: Incompletely deployed:

       

      DEPLOYMENTS IN ERROR:
        Deployment "JMXKernel" is in error due to: java.lang.NoClassDefFoundError: org/jboss/mx/server/ServerConstants

       

      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "ProfileServiceBootstrap" is missing the following dependencies:
          Dependency "ProfileService" (should be in state "Installed", but is actually in state "Instantiated")
          Dependency "MainDeployer" (should be in state "Installed", but is actually in state "Instantiated")
          Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "MetaDataStructureModificationChecker" is missing the following dependencies:
          Dependency "MainDeployer" (should be in state "Installed", but is actually in state "Instantiated")
        Deployment "ServiceDeployer" is missing the following dependencies:
          Dependency "JMXKernel" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "ServiceMetaDataICF" is missing the following dependencies:
          Dependency "JMXKernel" (should be in state "Installed", but is actually in state "**ERROR**")
          Dependency "JMXKernel" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "ProfileService" is missing the following dependencies:
          Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")
          Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")
        Deployment "Deployers" is missing the following dependencies:
          Dependency "jboss.kernel:service=KernelController" (should be in state "Installed", but is actually in state "**ERROR**")
          Dependency "JMXCreateDestroyAdvice" (should be in state "Installed", but is actually in state "Instantiated")
          Dependency "JMXRegistrationAdvice" (should be in state "Installed", but is actually in state "Instantiated")
          Dependency "JMXStartStopAdvice" (should be in state "Installed", but is actually in state "Instantiated")
        Deployment "AspectManagerJMXRegistrar" is missing the following dependencies:
          Dependency "JMXKernel" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "ProfileServiceDeployer" is missing the following dependencies:
          Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "Instantiated")
          Dependency "MainDeployer" (should be in state "Installed", but is actually in state "Instantiated")
        Deployment "DefaultDeploymentRepositoryFactory" is missing the following dependencies:
          Dependency "StructureModificationChecker" (should be in state "Installed", but is actually in state "Described")
        Deployment "AttachmentStore" is missing the following dependencies:
          Dependency "MainDeployer" (should be in state "Installed", but is actually in state "Instantiated")
        Deployment "ProfileServicePersistenceDeployer" is missing the following dependencies:
          Dependency "AttachmentStore" (should be in state "Installed", but is actually in state "Instantiated")
        Deployment "JMXRegistrationAdvice" is missing the following dependencies:
          Dependency "JMXKernel" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "JMXStartStopAdvice" is missing the following dependencies:
          Dependency "JMXKernel" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "JMXCreateDestroyAdvice" is missing the following dependencies:
          Dependency "JMXKernel" (should be in state "Installed", but is actually in state "**ERROR**")
        Deployment "MainDeployer" is missing the following dependencies:
          Dependency "Deployers" (should be in state "Installed", but is actually in state "Described")
        Deployment "StructureModificationChecker" is missing the following dependencies:
          Dependency "MetaDataStructureModificationChecker" (should be in state "Installed", but is actually in state "Described")

       

          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:278)
          at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:174)
          at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:142)
          at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
          at org.jboss.Main.boot(Main.java:221)
          at org.jboss.Main$1.run(Main.java:556)
          at java.lang.Thread.run(Thread.java:595)
      Shutdown complete
      Halting VM

        • 1. Re: Jboss 5.1.0 installation errors
          hugbert

          org/jboss/mx/server/ServerConstants is in jboss\lib\jboss-j2se.jar

          do you have this?

           

          hint: use a tool like "java class finder". It helps you to find belonging jars.

           

          Hubert

          • 2. Re: Jboss 5.1.0 installation errors

            Felber,

            Thanks for the help, its working fine ..but getting the following exeption now could you please shed some light

             

            18:10:46,580 ERROR [AbstractKernelController] Error installing to Start: name=JMXKernel state=Create
            java.lang.IllegalAccessError: tried to access class org.jboss.mx.loading.ClassToStringAction from class org.jboss.mx.loading.UnifiedLoaderRepository3
                at org.jboss.mx.loading.UnifiedLoaderRepository3.<clinit>(UnifiedLoaderRepository3.java:169)
                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:494)
                at java.lang.Class.newInstance0(Class.java:350)
                at java.lang.Class.newInstance(Class.java:303)
                at org.jboss.mx.server.MBeanServerImpl.getClassLoaderRepository(MBeanServerImpl.java:1124)
                at org.jboss.mx.server.MBeanServerImpl.<init>(MBeanServerImpl.java:199)
                at org.jboss.mx.server.MBeanServerBuilderImpl.newMBeanServer(MBeanServerBuilderImpl.java:71)
                at javax.management.MBeanServerFactory.newMBeanServer(MBeanServerFactory.java:316)
                at javax.management.MBeanServerFactory.createMBeanServer(MBeanServerFactory.java:219)
                at org.jboss.system.server.jmx.JMXKernel.start(JMXKernel.java:203)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:585)
                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
                at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:319)
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:297)
                at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
                at org.jboss.kernel.plugins.deployment.BasicKernelDeployer.deploy(BasicKernelDeployer.java:76)
                at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:91)
                at org.jboss.bootstrap.microcontainer.TempBasicXMLDeployer.deploy(TempBasicXMLDeployer.java:161)
                at org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:138)
                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
                at org.jboss.Main.boot(Main.java:221)
                at org.jboss.Main$1.run(Main.java:556)
                at java.lang.Thread.run(Thread.java:595)
            Shutdown complete

            • 3. Re: Jboss 5.1.0 installation errors
              hugbert

              sorry, I have no clue.

               

              Hubert

              • 4. Re: Jboss 5.1.0 installation errors
                jaikiran

                Are you packaging any JBoss specific jar files in your application? If yes, remove those jars from the application packaging.