9 Replies Latest reply on Jul 21, 2014 6:52 AM by venugopalan

    Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA

    lutzendonkey

      Hi, ereryone!

      I am a beginner at JBOSS, and i have a problem with the applation described below:

      新規ビットマップ イメージ.PNG

      In ../deploy/D.ear/META-INF/application.xml file, A.ejb.jar and B.entities.jar are included and the content of application.xml file is below:

      <?xml version="1.0" encoding="ASCII"?>
      <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
      <!-- xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd"  -->
        <display-name>obsys</display-name>
        <module>
          <ejb>A.ejb.jar</ejb>
        </module>
        <module>
          <ejb>B.entities.jar</ejb>
        </module>
      </application>


      In ../deployD.ear/A.ejb.jar/META-INF/MANIFEST.MF file, it refers B.entities.jar and the content of MANIFEST.MF file is below:

      Manifest-Version: 1.0
      Class-Path: B.entities.jar

       

      In ../deployD.ear/B.entities.jar/META-INF/persistence.xml file,persistence unit is defined and the content os the persistence.xml file is below

      <?xml version="1.0" encoding="UTF-8"?>
      <!-- Persistence deployment descriptor for dev profile -->
      <persistence xmlns="http://java.sun.com/xml/ns/persistence"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
                   version="1.0">
                  
         <persistence-unit name="pu" transaction-type="JTA">
            <provider>org.hibernate.ejb.HibernatePersistence</provider>
            <jta-data-source>java:/oracle10gDatasource</jta-data-source>
            <properties>
               <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
               <property name="hibernate.hbm2ddl.auto" value="none"/>
               <property name="hibernate.show_sql" value="false"/>
               <property name="hibernate.format_sql" value="true"/>
               <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
            </properties>
         </persistence-unit>
      </persistence>


      The application above deployed successed in jboss-4.2.2.GA and run well.
      But when migrated from jboss-4.2.2.GA to jboss-5.0.0.GA, errors accured in deploying.

      The info of the errors are below:

       

      14:04:16,859 WARN  [Ejb3AnnotationHandler] JBMETA-4: did not find any bean meta data for annotation bean MasterDaoBean, will create some
      14:04:16,968 WARN  [Ejb3AnnotationHandler] JBMETA-4: did not find any bean meta data for annotation bean OrderDaoBean, will create some
      14:04:17,125 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/Server/JBOSS/jboss-5.0.0.GA/server/default/deploy/D.ear/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying A.ejb.jar: Container jboss.j2ee:ear=D.ear,jar=A.ejb.jar,name=MasterDaoBean,service=EJB3 failed to resolve persistence unit pu
              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:203)
              at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:104)
              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: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:545)
              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(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: Container jboss.j2ee:ear=D.ear,jar=A.ejb.jar,name=MasterDaoBean,service=EJB3 failed to resolve persistence unit pu
              at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:130)
              at org.jboss.injection.PersistenceContextHandler.handleFieldAnnotations(PersistenceContextHandler.java:183)
              at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:160)
              at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.java:197)
              at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:586)
              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:196)
              ... 23 more
      Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'pu' in AbstractVFSDeploymentContext@28220652{vfsfile:/C:/Server/JBOSS/jboss-5.0.0.GA/server/default/deploy/D.ear/A.ejb.jar/}
              at org.jboss.jpa.resolvers.DefaultPersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(DefaultPersistenceUnitDependencyResolver.java:141)
              at org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Deployment.java:720)
              at org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContainer.java:1418)
              at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:125)
              ... 30 more
      14:04:17,218 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS IN ERROR: Name -> Error

      vfsfile:/C:/Server/JBOSS/jboss-5.0.0.GA/server/default/deploy/D.ear/ -> java.lang.IllegalArgumentException: Can't find a persistence unit named 'pu' in AbstractVFSDeploymentContext@28220652{vfsfile:/C:/Server/JBOSS/jboss-5.0.0.GA/server/default/deploy/D.ear/A.ejb.jar/}

       

       

      Will someone tell me how to do with the problem?

       

      best regards

      lutzen

        • 1. Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA
          jaikiran

          Do not use JBoss AS 5.0.0. If you have to use JBoss AS5, then use 5.1.0. If you are not restricted to using JBoss AS5, then use the latest JBoss AS 6.0.0.Final. If you still run into issues, please post the new exception stacktrace.

          • 2. Re: Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA
            lutzendonkey

            Hi, jaikiran pai

            Thanks for Ur suggestion!

            I tried to relocate jboss 6.0.0.final, and put my EAR into the deploy and did the same configuration as above.

            It did not work neither. When deployed, finally it seems like the same error occured.

            So I post the exception info bellow.

            I  have no idea about what happended, so please give me some advice.

            Thanks!

             

             

            18:28:59,812 INFO  [BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 into MC at org.jboss.ejb.bean.instantiator/D/A.ejb/OpjFacadeBean
            18:28:59,812 INFO  [BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 into MC at org.jboss.ejb.bean.instantiator/D/A.ejb/OrderDaoBean
            18:28:59,812 INFO  [BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 into MC at org.jboss.ejb.bean.instantiator/D/A.ejb/VeriTransManagerBean
            18:28:59,812 INFO  [BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 into MC at org.jboss.ejb.bean.instantiator/D/A.ejb/ObsysOrderManagerBean
            18:28:59,828 INFO  [BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 into MC at org.jboss.ejb.bean.instantiator/D/A.ejb/MasterDaoBean
            18:28:59,828 INFO  [BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 into MC at org.jboss.ejb.bean.instantiator/D/B.entities/OrderDaoBean
            18:28:59,828 INFO  [BeanInstantiatorDeployerBase] Installed org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 into MC at org.jboss.ejb.bean.instantiator/D/B.entities/MasterDaoBean
            18:28:59,843 WARN  [InterceptorInfoRepository] EJBTHREE-1852: InterceptorInfoRepository is deprecated
            18:29:00,343 INFO  [BeanInstantiatorDeployerBase] Uninstalled org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 from MC at org.jboss.ejb.bean.instantiator/D/B.entities/OrderDaoBean
            18:29:00,343 INFO  [BeanInstantiatorDeployerBase] Uninstalled org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 from MC at org.jboss.ejb.bean.instantiator/D/B.entities/MasterDaoBean
            18:29:00,359 INFO  [BeanInstantiatorDeployerBase] Uninstalled org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 from MC at org.jboss.ejb.bean.instantiator/D/A.ejb/OpjFacadeBean
            18:29:00,359 INFO  [BeanInstantiatorDeployerBase] Uninstalled org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 from MC at org.jboss.ejb.bean.instantiator/D/A.ejb/OrderDaoBean
            18:29:00,359 INFO  [BeanInstantiatorDeployerBase] Uninstalled org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 from MC at org.jboss.ejb.bean.instantiator/D/A.ejb/VeriTransManagerBean
            18:29:00,359 INFO  [BeanInstantiatorDeployerBase] Uninstalled org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 from MC at org.jboss.ejb.bean.instantiator/D/A.ejb/ObsysOrderManagerBean
            18:29:00,359 INFO  [BeanInstantiatorDeployerBase] Uninstalled org.jboss.ejb3.instantiator.impl.Ejb31SpecBeanInstantiator@62ef09 from MC at org.jboss.ejb.bean.instantiator/D/A.ejb/MasterDaoBean
            18:29:00,375 ERROR [AbstractKernelController] Error installing to Real: name=vfs:///C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/D.ear state=PreReal mode=Manual requiredState=Real: org.jboss.deployers.spi.DeploymentException: Error deploying A.ejb.jar: Exception while processing container
            metadata for EJB: MasterDaoBean in unit: A.ejb.jar
                    at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:194) [:6.0.0.Final]
                    at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:60) [:6.0.0.Final]
                    at org.jboss.deployers.vfs.spi.deployer.AbstractSimpleVFSRealDeployer.deploy(AbstractSimpleVFSRealDeployer.java:56) [:2.2.0.GA]
                    at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]
                    at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]
                    at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.GA]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                    at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                    at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                    at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                    at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
                    at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
                    at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                    at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
                    at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
                    at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
                    at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]
                    at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]
                    at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]
                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]
                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]
            Caused by: java.lang.Exception: Exception while processing container metadata for EJB: MasterDaoBean in unit: A.ejb.jar
                    at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:561) [:1.7.17]
                    at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:177) [:6.0.0.Final]
                    ... 49 more
            Caused by: java.lang.IllegalArgumentException: Container jboss.j2ee:ear=D.ear,jar=A.ejb.jar,name=MasterDaoBean,service=EJB3 failed to resolve persistence unit pu
                    at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:135) [:1.7.17]
                    at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:76) [:1.7.17]
                    at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:779) [:1.7.17]
                    at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:471) [:1.7.17]
                    at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:553) [:1.7.17]
                    ... 50 more
            Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'pu' in AbstractVFSDeploymentContext@4890061{vfs:///C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/D.ear/A.ejb.jar/}
                    at org.jboss.jpa.resolvers.BasePersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(BasePersistenceUnitDependencyResolver.java:107) [:1.0.2-alpha-3]
                    at org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Deployment.java:817) [:1.7.17]
                    at org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContainer.java:1689) [:1.7.17]
                    at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:130) [:1.7.17]
                    ... 54 more

            18:29:00,765 INFO    [service] Removing bootstrap log handlers
            18:29:00,828 ERROR [ProfileServiceBootstrap] Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

            DEPLOYMENTS IN ERROR:
              Deployment "vfs:///C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/D.ear" is in error due to the following reason(s): java.lang.IllegalArgumentException: Can't find a persistence unit named 'pu' in AbstractVFSDeploymentContext@4890061{vfs:///C:/Server/JBOSS/jboss-6.0.0.Final/server/default
            /deploy/D.ear/A.ejb.jar/}

                    at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]
                    at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]
                    at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
                    at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
                    at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
                    at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                    at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                    at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]

            • 3. Re: Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA
              jaikiran

              Caused by: java.lang.IllegalArgumentException: Container jboss.j2ee:ear=D.ear,jar=A.ejb.jar,name=MasterDaoBean,service=EJB3 failed to resolve persistence unit pu

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

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

                      at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:779) [:1.7.17]

                      at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:471) [:1.7.17]

                      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:553) [:1.7.17]

                      ... 50 more

              Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'pu' in AbstractVFSDeploymentContext@4890061{vfs:///C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/D.ear/A.ejb.jar/}

              Do you have any @PersistenceContext references? What do they look like? And what does your persistence.xml file look like and where is it packaged?

              • 4. Re: Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA
                jaikiran

                jaikiran pai wrote:

                 

                and where is it packaged?

                I just noticed the image that you had posted in your first post in this topic. So you have a persistence.xml in a different jar (Bentities.jar) and you are using @PersistenceContext from a different jar (Aejb.jar)?

                • 5. Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA
                  lutzendonkey

                  @PersistenceContext is just in Bean of B.entities.jar and there in no @PersistenceContext in A.ejb.jar.
                  In A.ejb.jar, I just use the bean defined in B.entities.jar.

                   

                  In META-INO/MANIFEST.MF of A.ejb.jar, below :

                   

                  Manifest-Version: 1.0

                  Class-Path: B.entities.jar

                   

                  is used to include B.entities.jar.


                  And the persistence.xml is packaged in META-INF of B.entities.jar.


                  The content of persistence.xml is below:

                  <?xml version="1.0" encoding="UTF-8"?>
                  <!-- Persistence deployment descriptor for dev profile -->
                  <persistence xmlns="http://java.sun.com/xml/ns/persistence"
                               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                               xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
                               version="1.0">
                              
                     <persistence-unit name="pu" transaction-type="JTA">
                        <provider>org.hibernate.ejb.HibernatePersistence</provider>
                        <jta-data-source>java:/opjDatasource</jta-data-source>
                        <!--<jar-file>obsys.ejb.jar</jar-file>-->

                        <properties>
                           <property name="hibernate.dialect" value="org.hibernate.dialect.Oracle10gDialect"/>
                           <property name="hibernate.hbm2ddl.auto" value="none"/>
                           <property name="hibernate.show_sql" value="false"/>
                           <property name="hibernate.format_sql" value="true"/>
                           <property name="hibernate.transaction.manager_lookup_class" value="org.hibernate.transaction.JBossTransactionManagerLookup"/>
                          
                           <property name="jboss.entity.manager.jndi.name" value="java:/Manager1"/>
                           <property name="jboss.entity.manager.factory.jndi.name" value="java:/Manager1Factory"/>
                          
                        </properties>
                     </persistence-unit>
                  </persistence>

                  • 6. Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA
                    jaikiran

                    Try removing the ClassPath entry from the MANIFEST.MF of A.ejb.jar. If you want to access the EJB interfaces present in B.entities.jar, from A.ejb.jar, then create a separate jar with just the bean interfaces and place it in .ear/lib folder.

                    1 of 1 people found this helpful
                    • 7. Re: Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA
                      lutzendonkey

                      Thanks !

                       

                      So if I create a separate .jar with just bean interfaces and place it into .ear/lib folder, what about B.entities.jar and where to package persistence.xml?

                      I did below.
                      I just removed B.entities.jar(also including persistence.xml) from .ear/ and place it into .ear/lib folder. Then deleted classPath entry from the MANIFEST.MF of A.ejb.jar.
                      Error occured when deployed.

                      the exception was so different from before. erroe info is below:

                      20:19:35,375 WARN    [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
                      20:19:37,421 INFO  [PersistenceUnitValueMetaData] iDependOn persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
                      20:19:37,500 ERROR [AbstractKernelController] Error installing to PreReal: name=vfs:///C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/D.ear state=PostClassLoader mode=Manual requiredState=PreReal: org.jboss.deployers.spi.DeploymentException: No module with relative path lib/B.entities.jar f
                      ound  in set of modules for vfs:///C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/D.ear [A.ejb.jar, META-INF/properties-service.xml]
                              at org.jboss.deployment.ModuleNameDeployer.establishUniqueModuleName(ModuleNameDeployer.java:163) [:6.0.0.Final]
                              at org.jboss.deployment.ModuleNameDeployer.deploy(ModuleNameDeployer.java:118) [:6.0.0.Final]
                              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.GA]
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]
                              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]
                              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]
                              at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]
                              at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]
                              at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]
                              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]
                              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]
                              at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]
                              at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]
                              at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]
                              at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]
                              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]
                              at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]
                              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]
                              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]
                              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
                              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                              at java.lang.Thread.run(Thread.java:619) [:1.6.0_21]

                      20:19:38,640 WARN    [FileConfigurationParser] AIO wasn't located on this platform, it will fall back to using pure Java NIO. If your platform is Linux, install LibAIO to enable the AIO journal
                      20:19:38,812 INFO  [JMXConnector] starting JMXConnector on host 127.0.0.1:1090
                      20:19:38,921 INFO  [MailService] Mail Service bound to java:/Mail
                      20:19:39,703 INFO    [HornetQServerImpl] live server is starting..
                      20:19:39,750 INFO  [JournalStorageManager] Using NIO Journal
                      20:19:39,765 WARN    [HornetQServerImpl] Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
                      20:19:40,265 INFO  [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5445 for CORE protocol
                      20:19:40,265 INFO  [NettyAcceptor] Started Netty Acceptor version 3.2.1.Final-r2319 127.0.0.1:5455 for CORE protocol
                      20:19:40,265 INFO    [HornetQServerImpl] HornetQ Server version 2.1.2.Final (Colmeia, 120) started
                      20:19:40,312 INFO  [WebService] Using RMI server codebase: http://127.0.0.1:8083/
                      20:19:40,484 INFO  [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
                      20:19:40,484 INFO  [arjuna] ARJUNA-12324 Start RecoveryActivators
                      20:19:40,500 INFO  [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at 木, 20 1 2011 20:19:40
                      20:19:40,562 INFO  [arjuna] ARJUNA-12310 Recovery manager listening on endpoint 127.0.0.1:4712
                      20:19:40,562 INFO  [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on port 4712
                      20:19:40,578 INFO  [jbossatx] ARJUNA-32013 Starting transaction recovery manager
                      20:19:40,578 INFO  [arjuna] ARJUNA-12163 Starting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713
                      20:19:40,593 INFO  [arjuna] ARJUNA-12337 TransactionStatusManagerItem host: 127.0.0.1 port: 4713
                      20:19:40,593 INFO  [arjuna] ARJUNA-12170 TransactionStatusManager started on port 4713 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
                      20:19:40,625 INFO  [jbossatx] ARJUNA-32017 JBossTS Transaction Service (JTA version - tag: JBOSSTS_4_14_0_Final) - JBoss Inc.
                      20:19:40,671 INFO  [arjuna] ARJUNA-12202 registering bean jboss.jta:type=ObjectStore.
                      20:19:40,906 INFO  [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_21\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0
                      _21\bin;C:\oraclexe\app\oracle\product\10.2.0\server\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\TortoiseSVN\bin;%ORACLE_HOME%;%;C:\apache-maven-2.2.1\bin;C:\ant\bin;:「C:\Server\Tomca
                      t 5.5\bin;C:\Program Files\Java\jdk1.6.0_21\bin;
                      20:19:41,062 INFO  [ModClusterService] Initializing mod_cluster 1.1.0.Final
                      20:19:41,093 INFO  [TomcatDeployment] deploy, ctxPath=/invoker
                      20:19:41,609 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
                      20:19:41,609 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
                      20:19:41,625 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/jms-ra.rar/META-INF/ra.xml
                      20:19:41,640 INFO  [HornetQResourceAdapter] HornetQ resource adaptor started
                      20:19:41,656 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/mail-ra.rar/META-INF/ra.xml
                      20:19:41,656 INFO  [RARDeployment] Required license terms exist, view vfs:/C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
                      20:19:41,734 INFO  [SimpleThreadPool] Job execution threads will use class loader of thread: Thread-2
                      20:19:41,765 INFO  [SchedulerSignalerImpl] Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
                      20:19:41,765 INFO  [QuartzScheduler] Quartz Scheduler v.1.8.3 created.
                      20:19:41,781 INFO  [RAMJobStore] RAMJobStore initialized.
                      20:19:41,781 INFO  [QuartzScheduler] Scheduler meta-data: Quartz Scheduler (v1.8.3) 'JBossQuartzScheduler' with instanceId 'NON_CLUSTERED'
                        Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
                        NOT STARTED.
                        Currently in standby mode.
                        Number of jobs executed: 0
                        Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
                        Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.

                      20:19:41,781 INFO  [StdSchedulerFactory] Quartz scheduler 'JBossQuartzScheduler' initialized from an externally opened InputStream.
                      20:19:41,781 INFO  [StdSchedulerFactory] Quartz scheduler version: 1.8.3
                      20:19:41,781 INFO  [QuartzScheduler] Scheduler JBossQuartzScheduler_$_NON_CLUSTERED started.
                      20:19:42,093 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
                      20:19:42,234 INFO  [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
                      20:19:42,906 INFO  [Version] Hibernate Commons Annotations 3.2.0.Final
                      20:19:42,921 INFO  [Environment] Hibernate 3.6.0.Final
                      20:19:42,921 INFO  [Environment] hibernate.properties not found
                      20:19:42,937 INFO  [Environment] Bytecode provider name : javassist
                      20:19:42,937 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling
                      20:19:43,031 INFO  [Version] Hibernate EntityManager 3.6.0.Final
                      20:19:43,062 INFO  [Ejb3Configuration] Processing PersistenceUnitInfo [
                              name: timerdb
                              ...]
                      20:19:43,093 WARN  [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly.PersistenceUnitInfo.getNewTempClassLoader() is null.
                      20:19:43,156 INFO  [AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.TimerEntity
                      20:19:43,203 INFO  [EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.TimerEntity on table timer
                      20:19:43,265 INFO  [AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.TimeoutMethod
                      20:19:43,265 INFO  [EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.TimeoutMethod on table timeout_method
                      20:19:43,296 INFO  [AnnotationBinder] Binding entity from annotated class: org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity
                      20:19:43,312 INFO  [EntityBinder] Bind entity org.jboss.ejb3.timerservice.mk2.persistence.CalendarTimerEntity on table calendar_timer
                      20:19:43,343 INFO  [Version] Hibernate Validator 3.1.0.GA
                      20:19:43,390 INFO  [Version] Hibernate Validator 4.1.0.Final
                      20:19:43,406 INFO  [DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
                      20:19:43,531 INFO  [DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
                      20:19:43,531 INFO  [DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
                      20:19:43,546 INFO  [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
                      20:19:43,546 INFO  [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
                      20:19:43,562 INFO  [InjectedDataSourceConnectionProvider] Using provided datasource
                      20:19:43,562 INFO  [SettingsFactory] Database ->
                             name : HSQL Database Engine
                          version : 1.8.0
                            major : 1
                            minor : 8
                      20:19:43,578 INFO  [SettingsFactory] Driver ->
                             name : HSQL Database Engine Driver
                          version : 1.8.0
                            major : 1
                            minor : 8
                      20:19:43,625 INFO  [Dialect] Using dialect: org.hibernate.dialect.HSQLDialect
                      20:19:43,640 INFO  [JdbcSupportLoader] Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
                      20:19:43,656 INFO  [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
                      20:19:43,656 INFO  [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
                      20:19:43,656 INFO  [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
                      20:19:43,671 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
                      20:19:43,671 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
                      20:19:43,671 INFO  [SettingsFactory] JDBC batch size: 15
                      20:19:43,671 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
                      20:19:43,671 INFO  [SettingsFactory] Scrollable result sets: enabled
                      20:19:43,687 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
                      20:19:43,687 INFO  [SettingsFactory] Connection release mode: auto
                      20:19:43,687 INFO  [SettingsFactory] Default batch fetch size: 1
                      20:19:43,687 INFO  [SettingsFactory] Generate SQL with comments: disabled
                      20:19:43,703 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
                      20:19:43,703 INFO  [SettingsFactory] Order SQL inserts for batching: disabled
                      20:19:43,703 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
                      20:19:43,703 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
                      20:19:43,718 INFO  [SettingsFactory] Query language substitutions: {}
                      20:19:43,718 INFO  [SettingsFactory] JPA-QL strict compliance: enabled
                      20:19:43,718 INFO  [SettingsFactory] Second-level cache: enabled
                      20:19:43,718 INFO  [SettingsFactory] Query cache: disabled
                      20:19:43,718 INFO  [SettingsFactory] Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
                      20:19:43,734 INFO  [RegionFactoryCacheProviderBridge] Cache provider: org.hibernate.cache.HashtableCacheProvider
                      20:19:43,734 INFO  [SettingsFactory] Optimize cache for minimal puts: disabled
                      20:19:43,734 INFO  [SettingsFactory] Cache region prefix: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
                      20:19:43,750 INFO  [SettingsFactory] Structured second-level cache entries: disabled
                      20:19:43,750 INFO  [SettingsFactory] Statistics: disabled
                      20:19:43,750 INFO  [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
                      20:19:43,765 INFO  [SettingsFactory] Default entity-mode: pojo
                      20:19:43,765 INFO  [SettingsFactory] Named query checking : enabled
                      20:19:43,765 INFO  [SettingsFactory] Check Nullability in Core (should be disabled when Bean Validation is on): disabled
                      20:19:43,796 INFO  [SessionFactoryImpl] building session factory
                      20:19:44,015 INFO  [SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
                      20:19:44,015 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      20:19:44,015 INFO  [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=jboss-ejb3-timerservice-mk2.jar#timerdb
                      20:19:44,031 WARN  [SessionFactoryObjectFactory] InitialContext did not implement EventContext
                      20:19:44,031 INFO  [SchemaUpdate] Running hbm2ddl schema update
                      20:19:44,046 INFO  [SchemaUpdate] fetching database metadata
                      20:19:44,046 INFO  [SchemaUpdate] updating schema
                      20:19:44,046 INFO  [DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
                      20:19:44,078 INFO  [TableMetadata] table found: PUBLIC.TIMEOUTMETHOD_METHODPARAMS
                      20:19:44,078 INFO  [TableMetadata] columns: [methodparams, timeoutmethod_id]
                      20:19:44,078 INFO  [TableMetadata] foreign keys: [fkf294c964b7de2d8a]
                      20:19:44,078 INFO  [TableMetadata] indexes: [sys_idx_55]
                      20:19:44,093 INFO  [TableMetadata] table found: PUBLIC.CALENDAR_TIMER
                      20:19:44,109 INFO  [TableMetadata] columns: [scheduleexprtimezone, scheduleexprsecond, autotimer, scheduleexprstartdate, scheduleexprminute, scheduleexprhour, timeoutmethod_id, id, scheduleexprdayofmonth, scheduleexprenddate, scheduleexprmonth, scheduleexprdayofweek, scheduleexpryear]
                      20:19:44,109 INFO  [TableMetadata] foreign keys: [fk2b697f04b7de2d8a, fk2b697f04e6e6ef93]
                      20:19:44,109 INFO  [TableMetadata] indexes: [sys_idx_57, sys_idx_47, sys_idx_59]
                      20:19:44,125 INFO  [TableMetadata] table found: PUBLIC.TIMEOUT_METHOD
                      20:19:44,125 INFO  [TableMetadata] columns: [id, methodname, declaringclass]
                      20:19:44,125 INFO  [TableMetadata] foreign keys: []
                      20:19:44,125 INFO  [TableMetadata] indexes: [sys_idx_49]
                      20:19:44,140 INFO  [TableMetadata] table found: PUBLIC.TIMER
                      20:19:44,140 INFO  [TableMetadata] columns: [id, previousrun, initialdate, repeatinterval, timedobjectid, timerstate, nextdate, info]
                      20:19:44,156 INFO  [TableMetadata] foreign keys: []
                      20:19:44,156 INFO  [TableMetadata] indexes: [sys_idx_51]
                      20:19:44,156 INFO  [SchemaUpdate] schema update complete
                      20:19:44,171 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                      20:19:44,296 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
                      20:19:44,328 INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=opjDatasource' to JNDI name 'java:opjDatasource'
                      20:19:44,453 INFO  [xnio] XNIO Version 2.1.0.CR2
                      20:19:44,468 INFO  [nio] XNIO NIO Implementation Version 2.1.0.CR2
                      20:19:44,625 INFO  [remoting] JBoss Remoting version 3.1.0.Beta2
                      20:19:44,703 INFO  [TomcatDeployment] deploy, ctxPath=/
                      20:19:44,734 INFO    [service] Removing bootstrap log handlers
                      20:19:44,796 ERROR [ProfileServiceBootstrap] Failed to load profile:: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                      DEPLOYMENTS IN ERROR:
                        Deployment "vfs:///C:/Server/JBOSS/jboss-6.0.0.Final/server/default/deploy/D.ear" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: No module with relative path lib/B.entities.jar found  in set of modules for vfs:///C:/Server/JBOSS/jboss-6.0.0.Final/server/de
                      fault/deploy/D.ear [A.ejb.jar, META-INF/properties-service.xml]

                              at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1228) [:2.2.0.GA]
                              at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:905) [:2.2.0.GA]
                              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:87) [:6.0.0.Final]
                              at org.jboss.profileservice.deployment.ProfileDeployerPluginRegistry.checkAllComplete(ProfileDeployerPluginRegistry.java:107) [:0.2.2]
                              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:135) [:6.0.0.Final]
                              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]
                              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]
                              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

                      • 8. Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA
                        lutzendonkey

                        Hi,jaikiran pai

                         

                        I made a mistake yesterday in removing B.entities.jar to ./ear/lib folder.

                         

                        So, thismorning I tried again.

                        According to Ur suggestion,I removed the ClassPath entry from the MANIFEST.MF of A.ejb.jar and created a separate jar with just the bean interfaces and place it in .ear/lib folder.Deploying was successful!!

                        So I can move on.

                         

                        Thanks a lot.

                        • 9. Re: Please Help! Migrating from Jboss 4 to Jboss 5,deploy error in jboss-5.0.0.GA
                          venugopalan

                          Hi Iutzen,

                           

                          We are also facing similar issue as above in Jboss5.0 GA.

                          - my.ear
                             -A.war

                             -B.war

                             -C.war

                             -lib

                               - X.jar
                               -Y.jar

                            -META-INF

                               -application.xml

                           

                          In our case, X.jar refers to a class from Y.jar. Also Y.jar refers to a class in X.jar

                           

                          While deploying we are getting error :

                          org.jboss.deployers.spi.DeploymentException: java.lang.IllegalStateException: Failed to find ContainerDependencyMetaData for interface: scb.security.ejb.DepartmentEntity

                           

                          We have not give any classpath in manifest.

                          Advise or share sample for how to create separate jar only with bean interface? Will doing this alone resolve the whole class share issue?