[jboss-jira] [JBoss JIRA] (AS7-3709) Annotation @DependsOn does not understand definition of jar file like "name.jar#singletonBeanName"

Ondřej Chaloupka (JIRA) jira-events at lists.jboss.org
Fri Feb 10 05:12:48 EST 2012


Ondřej Chaloupka created AS7-3709:
-------------------------------------

             Summary: Annotation @DependsOn does not understand definition of jar file like "name.jar#singletonBeanName"
                 Key: AS7-3709
                 URL: https://issues.jboss.org/browse/AS7-3709
             Project: Application Server 7
          Issue Type: Bug
          Components: EJB
    Affects Versions: 7.1.0.CR1b
            Reporter: Ondřej Chaloupka
            Assignee: Stuart Douglas


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)

{code}
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
{code}

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list