5 Replies Latest reply on Nov 4, 2011 9:47 AM by Peter Johnson

    Problem encountered in starting JBoss in Eclipse

    deepak bisht Newbie

      Hi

       

      I am facing the following problem while starting JBoss through Eclipse.

      "Server JBoss v5.0 at localhost failed to start."

       

      JAVA_HOME, PATH, CLASSPATH are properly set.

      I am using jdk1.6.0_16.

       

      java.lang.NoClassDefFoundError: org/jboss/aop/standalone/PluggableInstrumentor

          at org.jboss.aop.asintegration.core.AspectManagerServiceDelegateJDK5.attachTranslator(AspectManagerServiceDelegateJDK5.java:42)

          at org.jboss.aop.asintegration.core.AspectManagerServiceDelegate.create(AspectManagerServiceDelegate.java:252)

          at org.jboss.aop.deployers.AbstractAspectManager.create(AbstractAspectManager.java:89)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

          at java.lang.reflect.Method.invoke(Unknown Source)

          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(Unknown Source)

      Caused by: java.lang.ClassNotFoundException: org.jboss.aop.standalone.PluggableInstrumentor from BaseClassLoader@8b8a47{VFSClassLoaderPolicy@1236cd5{name=aop-classloader:0.0.0$MODULE domain=ClassLoaderDomain@1ecfe07{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@ca0b6} roots=[DelegatingHandler@12470752[path=jboss-aop-asintegration-core.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-asintegration-core.jar], DelegatingHandler@14949315[path=jboss-aop-asintegration-jmx.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-asintegration-jmx.jar], DelegatingHandler@31116492[path=jboss-aop-asintegration-mc.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-asintegration-mc.jar], DelegatingHandler@29071960[path=jboss-aop-deployers.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-deployers.jar], DelegatingHandler@26357574[path=jboss-aop-jboss5.jar context=file:/D:/WebServices/jboss-5.1.0.GA/lib/ real=file:/D:/WebServices/jboss-5.1.0.GA/lib/jboss-aop-jboss5.jar]]  delegates=null exported=[, META-INF.maven.org.jboss.aop.jboss-aop-deployers, org.jboss.aop.classpool.ucl, META-INF.maven.org.jboss.aop.jboss-aop-asintegration-mc, META-INF.maven.org.jboss.aop.jboss-aop-asintegration-core, org.jboss.aop.classpool, META-INF, org.jboss.aop.deployers, org.jboss.aop.asintegration.core, org.jboss.aop.domain, META-INF.maven.org.jboss.aop.jboss-aop-asintegration-jmx, org.jboss.aop.asintegration.jboss5, org.jboss.aop.asintegration.jboss4, org.jboss.aop.asintegration, org.jboss.aop.deployment, org.jboss.aop.classpool.jbosscl] <IMPORT-ALL>NON_EMPTY}}

          at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)

          at java.lang.ClassLoader.loadClass(Unknown Source)

          ... 38 more

      15:36:14,062 INFO  [ServerInfo] Java version: 1.6.0_24,Sun Microsystems Inc.

      15:36:14,062 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime Environment (build 1.6.0_24-b07)

      15:36:14,062 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 19.1-b02,Sun Microsystems Inc.

      15:36:14,062 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86

      15:36:14,062 INFO  [ServerInfo] VM arguments: -Dprogram.name=run.bat -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=Cp1252

      15:36:14,078 INFO  [JMXKernel] Legacy JMX core initialized

      Failed to boot JBoss:

      java.lang.IllegalStateException: Incompletely deployed:

       

      DEPLOYMENTS IN ERROR:

        Deployment "AspectManager" is in error due to: java.lang.NoClassDefFoundError: org/jboss/aop/standalone/PluggableInstrumentor

       

      DEPLOYMENTS MISSING DEPENDENCIES:

        Deployment "JMXCreateDestroyAdvice$AspectBinding" is missing the following dependencies:

          Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")

        Deployment "BeansDeploymentAopMetaDataDeployer" is missing the following dependencies:

          Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")

          Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")

        Deployment "JMXRegistrationAdvice$AspectBinding" is missing the following dependencies:

          Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")

        Deployment "JMXStartStopAdvice$AspectBinding" is missing the following dependencies:

          Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")

        Deployment "AspectManagerJMXRegistrar" is missing the following dependencies:

          Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")

        Deployment "AOPClassLoaderDeployer" is missing the following dependencies:

          Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")

        Deployment "AOPDeploymentAopMetaDataDeployer" is missing the following dependencies:

          Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")

          Dependency "AspectManager" (should be in state "Installed", but is actually in state "**ERROR**")

       

          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(Unknown Source)

      15:36:14,984 INFO  [ServerImpl] Runtime shutdown hook called, forceHalt: true

      15:36:14,984 INFO  [ServerImpl] Shutdown complete

      Shutdown complete

      Halting VM

       

      please help.

       

      thanks

        • 1. Re: Problem encountered in starting JBoss in Eclipse
          Wolf-Dieter Fink Master

          What Eclipse version do you use?

          Do you use JBoss / maven plugins?

           

          Please give a bit more details

          • 2. Re: Problem encountered in starting JBoss in Eclipse
            Peter Johnson Master

            Which server configuration are you running? 'all'? 'default'?

             

            The missing class should be in server/xxx/deployers/jboss-aop-jboss5.deployer/pluggable-instrumentor.jar. Please verify that that file exists.

             

            At this point I suspect that you installation migth be corrupted. I recommend redownloading and reinstalling.

            • 3. Re: Problem encountered in starting JBoss in Eclipse
              deepak bisht Newbie

              Hi Wolf Derek Fink

               

              I am using eclipse 3.5(Galelio)

              Yes, i am using jboss plugin named as "org.eclipse.jst.server.generic.jboss_1.6.1.v200904151730".

              No, i am not using maven plugin.

               

              sorry i got late in replying

              • 4. Re: Problem encountered in starting JBoss in Eclipse
                deepak bisht Newbie

                Hi Peter Johnson

                 

                Server Properties:

                 

                Address :127.0.0.1

                Port: 8080

                JNDI port: 1099

                Server Configuration: default

                 

                The missing class should be in server/xxx/deployers/jboss-aop-jboss5.deployer/pluggable-instrumentor.jar. Please verify that that file exists.

                yes, this jar exists..

                 

                when i changed the server configuration to "all"..

                i got the following exception

                 

                13:21:13,265 ERROR [AbstractKernelController] Error installing to Instantiated: name=AttachmentStore state=Described

                java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]

                          at org.jboss.reflect.plugins.introspection.ReflectionUtils.handleErrors(ReflectionUtils.java:395)

                          at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:153)

                          at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:106)

                          at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)

                          at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.createTarget(AOPConstructorJoinpoint.java:282)

                          at org.jboss.aop.microcontainer.integration.AOPConstructorJoinpoint.dispatch(AOPConstructorJoinpoint.java:103)

                          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.InstantiateAction.installActionInternal(InstantiateAction.java:66)

                          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(Unknown Source)

                Failed to boot JBoss:

                java.lang.IllegalStateException: Incompletely deployed:

                 

                 

                DEPLOYMENTS IN ERROR:

                  Deployment "AttachmentStore" is in error due to: java.lang.IllegalArgumentException: Wrong arguments. new for target java.lang.reflect.Constructor expected=[java.net.URI] actual=[java.io.File]

                 

                 

                DEPLOYMENTS MISSING DEPENDENCIES:

                  Deployment "ProfileServiceBootstrap" is missing the following dependencies:

                    Dependency "jboss.kernel:service=Kernel" (should be in state "Installed", but is actually in state "**ERROR**")

                    Dependency "ProfileService" (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 "**ERROR**")

                  Deployment "ProfileService" is missing the following dependencies:

                    Dependency "ProfileServiceDeployer" (should be in state "Installed", but is actually in state "Instantiated")

                    Dependency "jboss.kernel:service=KernelController" (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 "**ERROR**")

                 

                 

                          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(Unknown Source)

                13:21:13,796 INFO  [ServerImpl] Runtime shutdown hook called, forceHalt: true

                13:21:13,796 INFO  [ServerImpl] Shutdown complete

                Shutdown complete

                Halting VM

                 

                At this point I suspect that you installation migth be corrupted. I recommend redownloading and reinstalling.

                I tried with fresh installation also but the same problem persists.

                 

                One more thing. when i am using jboss standalone it is working fine.. the problem occurs only when i am using it in eclipse..

                 

                Thanks

                Deepak

                • 5. Re: Problem encountered in starting JBoss in Eclipse
                  Peter Johnson Master

                  It looks like you are using the generic JBoss AS support built into Eclipse. I recommend that you install JBoss Tools and try again with that. You will have to create a new Server within Eclipse using the options that JBoss Tools provides.

                  http://www.jboss.org/tools/download/installation/update_3_2.html

                   

                  Also, what JDK version is being used to run Eclipse? You can find this out by running the folowing from a command prompt:

                   

                  c:\windows\system32\java -version