0 Replies Latest reply on Feb 1, 2018 10:21 AM by Ankush Namdeo

    Exception while processing container metadata for EJB

    Ankush Namdeo Newbie

      I am deploying one EJB service in Jboss 5.1.0 GA but when ever i include the .ear file it gives the below mentioned error

       

      2018-02-01 15:18:00,529 INFO  [org.jboss.ejb3.deployers.JBossASKernel] Added bean(jboss.j2ee:ear=peb-ear-1.4.0.ear,jar=lisp-common-1.0.19.jar,name=remoteLookupService,service=EJB3) to KernelDeployment of: lisp-common-1.0.19.jar

      2018-02-01 15:18:00,921 ERROR [org.jboss.ejb3.Ejb3Deployment] Exception while processing container metadata for EJB: palletInvoiceService in unit: peb.jar

      2018-02-01 15:18:00,923 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Real: name=vfszip:/D:/Ankush/Jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/default/deploy/peb-ear-1.4.0.ear/ state=PreReal mode=Manual requiredState=Real

      org.jboss.deployers.spi.DeploymentException: Error deploying peb.jar: Exception while processing container metadata for EJB: palletInvoiceService in unit: peb.jar

      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)

      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)

      at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)

      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.doInstallParentFirst(DeployersImpl.java:1210)

      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(Thread.java:662)

      Caused by: java.lang.Exception: Exception while processing container metadata for EJB: palletInvoiceService in unit: peb.jar

      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:549)

      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:189)

      ... 34 more

      Caused by: java.lang.NullPointerException

      at org.jboss.injection.ResourceHandler.loadXmlResourceRefs(ResourceHandler.java:185)

      at org.jboss.injection.ResourceHandler.loadXml(ResourceHandler.java:335)

      at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:588)

      at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:418)

      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:527)

      ... 35 more

      2018-02-01 15:18:00,951 ERROR [org.jboss.system.server.profileservice.ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

       

      DEPLOYMENTS IN ERROR:

        Deployment "vfszip:/D:/Ankush/Jboss/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/default/deploy/peb-ear-1.4.0.ear/" is in error due to the following reason(s): java.lang.NullPointerException

       

       

      2018-02-01 15:18:00,977 INFO  [org.jboss.bootstrap.microcontainer.ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 24s:652ms

       

       

      I am not sure what I am doing wrong but it doesnt work in my local system.

       

      Thanks in advance.

      //ankush