2 Replies Latest reply on Nov 21, 2012 9:14 AM by erasmo2 marciano2

    JBoss 5.0.1 error deploying

    scanjet2 Newbie

      Hi everyone,

      I spend several day trying start up my simple application on JBoss 5.0.1 (also I use maven, ejb 3.0, eclipse) and i still have below error , can anyone help me ? please :/

       

       

       

      Message:

      org.jboss.deployers.spi.DeploymentException: Error deploying CRContainer.ear: Container jboss.j2ee:ear=CRContainer.ear,jar=CRContainer.ear,name=TimerBean,service=EJB3 failed to resolve persistence unit __EJB__Timer__App

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

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

                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.install(DeployersImpl.java:1098)

                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)

                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)

                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:698)

                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)

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

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

                at org.jboss.Main.boot(Main.java:209)

                at org.jboss.Main$1.run(Main.java:547)

                at java.lang.Thread.run(Unknown Source)

      Caused by: java.lang.IllegalArgumentException: Container jboss.j2ee:ear=CRContainer.ear,jar=CRContainer.ear,name=TimerBean,service=EJB3 failed to resolve persistence unit __EJB__Timer__App

                at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:135)

                at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:76)

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

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

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

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

                ... 22 more

      Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named '__EJB__Timer__App' in AbstractVFSDeploymentContext@46189949{vfszip:/C:/jboss-5.0.1/server/default/deploy/CRContainer.ear/}

                at org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107)

                at org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Deployment.java:720)

                at org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContainer.java:1428)

                at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:130)

                ... 27 more

      11:24:12,117 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

       

      DEPLOYMENTS IN ERROR:

        Deployment "vfszip:/C:/jboss-5.0.1/server/default/deploy/CRContainer.ear/" is in error due to the following reason(s): java.lang.IllegalArgumentException: Can't find a persistence unit named '__EJB__Timer__App' in AbstractVFSDeploymentContext@46189949{vfszip:/C:/jboss-5.0.1/server/default/deploy/CRContainer.ear/}