1 2 Previous Next 18 Replies Latest reply on Oct 3, 2008 11:37 AM by huberth

    deployment of ejb3 in jboss-5.0.0 CR2

    dasariprasad

      i have simple newcmp.jar that has persistence.xml as
      <?xml version="1.0" encoding="UTF-8"?>



      <persistence-unit name="mydb">

      <jta-data-source>java:/XAOracleDS</jta-data-source>




      org.hibernate.dialect.Oracle9Dialect




      <jar-file>../newcmp3.jar</jar-file>

      </persistence-unit>



      when deployed it is showing error as

      Error deploying newCmp3.jar: Can't find a persistence unit named 'mydb' in AbstractVFSDeploymentContext@16104253{vfszip:/C:/jboss-5.0.0/server/default/deploy/newCmp3.jar}
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:209)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:108)
      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:169)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
      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:627)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'mydb' in AbstractVFSDeploymentContext@16104253{vfszip:/C:/jboss-5.0.0/server/default/deploy/newCmp3.jar}
      at org.jboss.jpa.resolvers.DefaultPersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(DefaultPersistenceUnitDependencyResolver.java:141)
      at org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Deployment.java:841)
      at org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContainer.java:1399)
      at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:124)
      at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:76)
      at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:570)
      at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:439)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:552)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:202)
      ... 27 more
      2008-09-21 09:57:00,292 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Real: name=vfszip:/C:/jboss-5.0.0/server/default/deploy/newCmp3.jar state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying newCmp3.jar: Can't find a persistence unit named 'mydb' in AbstractVFSDeploymentContext@16104253{vfszip:/C:/jboss-5.0.0/server/default/deploy/newCmp3.jar}
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:209)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:108)
      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:169)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
      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:627)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: Can't find a persistence unit named 'mydb' in AbstractVFSDeploymentContext@16104253{vfszip:/C:/jboss-5.0.0/server/default/deploy/newCmp3.jar}
      at org.jboss.jpa.resolvers.DefaultPersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier(DefaultPersistenceUnitDependencyResolver.java:141)
      at org.jboss.ejb3.Ejb3Deployment.resolvePersistenceUnitSupplier(Ejb3Deployment.java:841)
      at org.jboss.ejb3.EJBContainer.resolvePersistenceUnitSupplier(EJBContainer.java:1399)
      at org.jboss.injection.PersistenceUnitHandler.addPUDependency(PersistenceUnitHandler.java:124)
      at org.jboss.injection.PersistenceContextHandler.loadXml(PersistenceContextHandler.java:76)
      at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:570)
      at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:439)
      at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:552)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:202)
      .

      can anybody tell what change i should do as this is running well in jboss-4.2.2 version

        • 1. Re: deployment of ejb3 in jboss-5.0.0 CR2
          jaikiran

           

          "dasariprasad" wrote:
          i have simple newcmp.jar that has persistence.xml



          Where in the jar have you placed the persistence.xml? Post the output of the following command:

          jar -tf newcmp.jar


          While posting the logs or xml content or code, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted

          • 2. Re: deployment of ejb3 in jboss-5.0.0 CR2
            dasariprasad

            0 Sun Sep 21 14:40:30 IST 2008 META-INF/
            102 Sun Sep 21 14:40:28 IST 2008 META-INF/MANIFEST.MF
            0 Sun Sep 21 14:40:30 IST 2008 ejb3cmps/
            3245 Sun Sep 21 14:40:30 IST 2008 ejb3cmps/Cmp3Client.class
            2679 Sun Sep 21 14:40:30 IST 2008 ejb3cmps/Courier.class
            399 Sun Sep 21 14:40:30 IST 2008 ejb3cmps/CourierSess.class
            1738 Sun Sep 21 14:40:30 IST 2008 ejb3cmps/CourierSessBean.class
            167 Sun Sep 21 14:40:30 IST 2008 ejb3cmps/CourierSessRemote.class
            425 Sun Sep 21 09:58:02 IST 2008 META-INF/persistence.xml

            • 3. Re: deployment of ejb3 in jboss-5.0.0 CR2
              jaikiran

              I just noticed that in your persistence.xml, you are referring to another jar file:

              <jar-file>../newcmp3.jar</jar-file>


              Where is this newcmp3.jar placed? Are you packaging both these newcmp.jar and newcmp3.jar in an EAR? Are these jar files deployed in exploded format or are they zipped?

              And what does the newcmp3.jar contain. Can you post the output of that jar too?

              jar -tf newcmp3.jar


              Also post the entire console logs.

              And while posting the logs or xml content or code, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted.

              • 4. Re: deployment of ejb3 in jboss-5.0.0 CR2
                dasariprasad

                Dear Sir,

                I am only deploying jar file and not an ear.
                I had given first
                simple persistence.xml
                like

                <?xml version="1.0" encoding="UTF-8"?>



                <persistence-unit name="mydb">

                <jta-data-source>java:/XAOracleDS</jta-data-source>



                org.hibernate.dialect.Oracle9Dialect



                </persistence-unit>



                then tried with
                <jar-file> element
                the console error while using this console error is


                19:15:40,615 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=newCmp3.jar,jar=newCmp3.jar,name=CourierSessBean,service=EJB3
                19:15:40,615 INFO [JBossASKernel] with dependencies:
                19:15:40,615 INFO [JBossASKernel] and demands:
                19:15:40,615 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
                19:15:40,615 INFO [JBossASKernel] persistence.unit:unitName=#mydb
                19:15:40,615 INFO [JBossASKernel] and supplies:
                19:15:40,615 INFO [JBossASKernel] Class:ejb3cmps.CourierSessRemote
                19:15:40,616 INFO [JBossASKernel] jndi:CourierSessBean/remote
                19:15:40,616 INFO [JBossASKernel] jndi:CourierSessBean/remote-ejb3cmps.CourierSessRemote
                19:15:40,616 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=newCmp3.jar,jar=newCmp3.jar,name=CourierSessBean,service=EJB3) to KernelDeployment of: newCmp3.jar
                19:15:40,676 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=#mydb
                19:15:40,736 ERROR [AbstractKernelController] Error installing to Start: name=persistence.unit:unitName=#mydb state=Create
                java.lang.NullPointerException
                at java.util.Hashtable.put(Hashtable.java:394)
                at java.util.Hashtable.putAll(Hashtable.java:466)
                at org.jboss.jpa.deployment.PersistenceUnitInfoImpl.(PersistenceUnitInfoImpl.java:128)
                at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:262)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:597)
                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: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.install(AbstractController.java:774)
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:124)
                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
                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:627)
                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:265)
                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:143)
                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
                at org.jboss.Main.boot(Main.java:209)
                at org.jboss.Main$1.run(Main.java:544)
                at java.lang.Thread.run(Thread.java:619)
                19:15:40,874 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

                *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}

                jboss.j2ee:ear=newCmp3.jar,jar=newCmp3.jar,name=CourierSessBean,service=EJB3
                -> <UNKNOWN jboss.j2ee:ear=newCmp3.jar,jar=newCmp3.jar,name=CourierSessBean,service=EJB3>{Described:** UNRESOLVED Demands 'persistence.unit:unitName=#mydb' **}


                *** CONTEXTS IN ERROR: Name -> Error

                <UNKNOWN jboss.j2ee:ear=newCmp3.jar,jar=newCmp3.jar,name=CourierSessBean,service=EJB3> -> ** UNRESOLVED Demands 'persistence.unit:unitName=#mydb' **

                persistence.unit:unitName=#mydb -> java.lang.NullPointerException

                • 5. Re: deployment of ejb3 in jboss-5.0.0 CR2
                  wolfc

                  First of all for any NullPointerException which doesn't give any message a Jira can be opened. Preferably with some test code attached that reproduces the problem.

                  This NPE is caused by improper specification of the properties in persistence.xml. You must use the forum code tag if you want to show us the persistence.xml. Please do so.

                  • 6. Re: deployment of ejb3 in jboss-5.0.0 CR2
                    dasariprasad

                    This is my persistence.xml file

                    <?xml version="1.0" encoding="UTF-8"?>
                    
                    <persistence xmlns="http://java.sun.com/xml/ns/persistence">
                    
                     <persistence-unit name="mydb">
                    
                     <jta-data-source>java:/XAOracleDS</jta-data-source>
                    
                     <properties>
                    
                    
                     <property name="dialect">
                     org.hibernate.dialect.Oracle9Dialect
                     </property>
                     </properties>
                    
                    
                    
                     </persistence-unit>
                    
                    </persistence>
                    i had given the properties


                    • 7. Re: deployment of ejb3 in jboss-5.0.0 CR2
                      jaikiran

                      I haven't given a try with deploying independent jar files. I have always used a EAR inside which i have the jar(s). Let me see if there is some issue with individual jar files.

                      By the way, this looks a bit strange to me:

                      19:15:40,616 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=newCmp3.jar,jar=newCmp3.jar,name=CourierSessBean,service=EJB3) to KernelDeployment of: newCmp3.jar


                      I don't know if the ear=newCmp3.jar in the objectname is expected when you are deploying just the jar file.


                      • 8. Re: deployment of ejb3 in jboss-5.0.0 CR2
                        jaikiran

                         

                        <property name="dialect">
                         org.hibernate.dialect.Oracle9Dialect
                         </property>
                        


                        This is incorrect. This should be:

                        <property name="dialect" value="org.hibernate.dialect.Oracle9Dialect">
                        
                         </property>



                        • 9. Re: deployment of ejb3 in jboss-5.0.0 CR2
                          jaikiran

                          Actually, i was surprised that this persistence.xml did not fail schema validation, because the "value" is a "required" attribute as per the xsd http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd.

                          Looks like the xml validation is not triggered unless you add the following to your persistence.xml:

                          <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">


                          So your persistence.xml should ultimately look like:

                          <?xml version="1.0" encoding="UTF-8"?>
                          
                          <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="mydb">
                          
                           <jta-data-source>java:/XAOracleDS</jta-data-source>
                          
                           <properties>
                          
                          
                           <property name="dialect" value="org.hibernate.dialect.Oracle9Dialect"/>
                          
                           </properties>
                          






                          • 10. Re: deployment of ejb3 in jboss-5.0.0 CR2
                            dasariprasad


                            Thank you very much sir,

                            i could able to correct and use it for demo classes

                            • 11. Re: deployment of ejb3 in jboss-5.0.0 CR2
                              dasariprasad

                              thank you very much

                              i could able to correct and show it in my class demo

                              • 12. Re: deployment of ejb3 in jboss-5.0.0 CR2
                                wolfc

                                 

                                "jaikiran" wrote:
                                I haven't given a try with deploying independent jar files. I have always used a EAR inside which i have the jar(s). Let me see if there is some issue with individual jar files.

                                By the way, this looks a bit strange to me:

                                19:15:40,616 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=newCmp3.jar,jar=newCmp3.jar,name=CourierSessBean,service=EJB3) to KernelDeployment of: newCmp3.jar


                                I don't know if the ear=newCmp3.jar in the objectname is expected when you are deploying just the jar file.

                                It also leads to @Depends regression, so: https://jira.jboss.org/jira/browse/JBAS-6007

                                • 13. Re: deployment of ejb3 in jboss-5.0.0 CR2
                                  huberth

                                  I've got similar issues with the CR load. Many ears using the same persistent units, so the PUs are in separate jars. It is unable to find the PU.

                                  If I throw the pars into one of the ears, and only deploy that ear, all is well.

                                  This worked fine under JBoss 4.

                                  • 14. Re: deployment of ejb3 in jboss-5.0.0 CR2
                                    huberth

                                    The code in DefaultPersistenceUnitDependencyResolver.resolvePersistenceUnitSupplier seems to fairly deliberately search only within the context of an application.

                                    So is this intended behaviour? (I.e. that services within an ear may only reference persistence units that are also contained in that ear.)

                                    Or is there some other way of referencing a persistence unit across the ear boundary?

                                    1 2 Previous Next