3 Replies Latest reply on Mar 8, 2010 11:09 AM by peterj

    JBOSS Server startup problem

      Hi,

      My Jboss server is failing to start. I am using JBOSS5.1.0-GA with JRE 1.6_13.

      Its giving a huge stack of exceptions, mainly related to classnotfound and noclassdeffounderror exceptions. I have JBOSS run.jar and JRE libraries in the classpath. The attached file contains the complete description of exception stack trace.

      Please provide me the suggestions.

      Thanks.
      Regards,
      Hemil
        • 1. Re: JBOSS Server startup problem
          peterj

          I would have thought that you would have included the information that I requested in my response to your other post:

          http://www.coderanch.com/t/485757/JBoss/starting-JBOSS-Server#2182892

          • 2. Re: JBOSS Server startup problem

            Hi Peter,

             

            I am experiencing the same problem with default configuration also. I have also removed the run.jar from classpath but the output is still the same.

             

            I am attaching boot.log file which shows log details of the server while it gets started. The first exception which is generated and described in jboss server.log file is described below -

             

            2010-03-08 12:17:08,877 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/C:/JBOSS/jboss-5.1.0.GA/server/all/deployers/ejb3.deployer/ state=PreReal mode=Manual requiredState=Real

            org.jboss.deployers.spi.DeploymentException: Error deploying: vfsfile:/C:/JBOSS/jboss-5.1.0.GA/server/all/deployers/ejb3.deployer/

            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

            at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:136)

            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.deploy(AbstractRealDeployerWithInput.java:125)

            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployerWithInput.internalDeploy(AbstractRealDeployerWithInput.java:102)

            at org.jboss.deployers.spi.deployer.helpers.AbstractComponentDeployer.internalDeploy(AbstractComponentDeployer.java:78)

            at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

            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.change(AbstractController.java:822)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

            at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

            at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

            at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

            at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

            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.change(AbstractController.java:822)

            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

            at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

            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.IllegalArgumentException: Exception loading class for ScopeKey addition.

            at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:67)

            at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.deploy(BeanMetaDataFactoryVisitor.java:126)

            ... 34 more

            Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.resolvers.DefaultMessageDestinationReferenceResolver from BaseClassLoader@c2ccac{VFSClassLoaderPolicy@10b5064{name=vfsfile:/C:/JBOSS/jboss-5.1.0.GA/server/all/deployers/ejb3.deployer/ domain=ClassLoaderDomain@1972e3a{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@1c39a2d} roots=[MemoryContextHandler@30083606[path= context=vfsmemory://4sp113e-mgvf0q-g6iwt81i-1-g6iwtdb5-9 real=vfsmemory://4sp113e-mgvf0q-g6iwt81i-1-g6iwtdb5-9], FileHandler@16987790[path=ejb3.deployer context=file:/C:/JBOSS/jboss-5.1.0.GA/server/all/deployers/ real=file:/C:/JBOSS/jboss-5.1.0.GA/server/all/deployers/ejb3.deployer/], DelegatingHandler@32681570[path=ejb3.deployer/jboss-ejb3-deployer.jar context=file:/C:/JBOSS/jboss-5.1.0.GA/server/all/deployers/ real=file:/C:/JBOSS/jboss-5.1.0.GA/server/all/deployers/ejb3.deployer/jboss-ejb3-deployer.jar], DelegatingHandler@26656928[path=ejb3.deployer/jboss-ejb3-iiop.jar context=file:/C:/JBOSS/jboss-5.1.0.GA/server/all/deployers/ real=file:/C:/JBOSS/jboss-5.1.0.GA/server/all/deployers/ejb3.deployer/jboss-ejb3-iiop.jar]] delegates=null exported=[org.jboss.as.javaee, org.jboss.ejb3.clientmodule, org.jboss.ejb3.deployers, org.jboss.ejb3.deployers.tmp, org.jboss.as.jpa.resolvers, org.jboss.as.ejb3.timerservice, META-INF] <IMPORT-ALL>NON_EMPTY}}

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

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

            at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataFactoryVisitor.addBeanComponent(BeanMetaDataFactoryVisitor.java:63)

            ... 35 more

            • 3. Re: JBOSS Server startup problem
              peterj

              When looking at an exception stack trace, always follow the "caused by" trail. Here is the root problem:

               

              Caused by: java.lang.ClassNotFoundException: org.jboss.ejb3.resolvers.DefaultMessageDestinationReferenceResolver

               

              I check and this class is found in common/lib/jboss-ejb3-core.jar. So it should have found this class without any problems. At this point I am suspecting that the JBoss AS download is corrupt.

               

              Also, I asked for the console output, not the boot.log file. And you never indicated whether you deployed any applications.