Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-3709

Annotation @DependsOn does not understand definition of jar file like "name.jar#singletonBeanName"

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.1.0.CR1b
    • Fix Version/s: 7.1.1.Final
    • Component/s: EJB
    • Labels:
      None

      Description

      In case that you define dependson annotation on singleton which is bundled in jar in ear and you want to use definition of jar with hash sign like: @DependsOn("one.jar#SingletonOne") exception is thrown during deployment.
      When you use only the singleton bean name it works.
      (EJB3.1 4.8.1)

      ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.subunit."dependson-test.ear"."two.jar".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."dependson-test.ear"."two.jar".INSTALL: Failed to process phase INSTALL of subdeployment "two.jar" of deployment "dependson-test.ear"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:119) [jboss-as-server-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_23]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_23]
      	at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_23]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014402: Could not merge data for SingletonTwo
      	at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.deploy(AbstractMergingProcessor.java:75)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.0.Final-SNAPSHOT.jar:7.1.0.Final-SNAPSHOT]
      	... 5 more
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014406: Could not find EJB one.jar#SingletonOne referenced by @DependsOn annotation in org.jboss.as.test.integration.ejb.singleton.dependson.SingletonTwo
      	at org.jboss.as.ejb3.deployment.processors.merging.EjbDependsOnMergingProcessor.setupDependencies(EjbDependsOnMergingProcessor.java:97)
      	at org.jboss.as.ejb3.deployment.processors.merging.EjbDependsOnMergingProcessor.handleAnnotations(EjbDependsOnMergingProcessor.java:71)
      	at org.jboss.as.ejb3.deployment.processors.merging.EjbDependsOnMergingProcessor.handleAnnotations(EjbDependsOnMergingProcessor.java:50)
      	at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.processComponentConfig(AbstractMergingProcessor.java:91)
      	at org.jboss.as.ejb3.deployment.processors.merging.AbstractMergingProcessor.deploy(AbstractMergingProcessor.java:73)
      	... 6 more
      

      Please, check my test code: https://github.com/ochaloup/jboss-as/blob/JBQA-5268-tests-singleton/testsuite/integration/basic/src/test/java/org/jboss/as/test/integration/ejb/singleton/dependson/SingletonTwo.java

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  swd847 Stuart Douglas
                  Reporter:
                  ochaloup Ondra Chaloupka
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: