0 Replies Latest reply on Oct 22, 2008 8:17 AM by jaikiran pai

    @EJB injection in Service uses incorrect business interface

    jaikiran pai Master

      I have been trying to come up with a test case for this user reported issue https://jira.jboss.org/jira/browse/EJBTHREE-1530

      I noticed that we already have a similar testcase in our testsuite org.jboss.ejb3.test.service.unit.ServiceUnitTestCase.testCreationOrder


      While trying to setup this up (with the latest EJB3 1.0.0 Beta5 which was released), i noticed that the service-test.jar fails to deploy resulting in 5 ERRORS and 1 FAILURE as can been seen in Hudson http://jboss.hudson.alrubinger.com/job/EJB3_Integration_TestSuite_AS_TRUNK/28/testReport/org.jboss.ejb3.test.service.unit/

      On debugging, i found that one of the issues is in the @EJB injection in

      package org.jboss.ejb3.test.service
      
      @Service (objectName = "jboss.ejb3:management=interface,with=customName,is=serviceThree")
      @Management(ServiceThreeManagement.class)
      @Depends ({"jboss.j2ee:jar=service-test.jar,name=ServiceTwo,service=EJB3","jboss.j2ee:jar=service-test.jar,name=ServiceOne,service=EJB3,type=ManagementInterface"})
      public class ServiceThree implements ServiceThreeManagement
      {
       @EJB
       private ServiceOneRemote serviceOne;
       ....
      
      }
      


      For some reason, the injection module is trying to inject an object from remote-org.jboss.ejb3.test.service.ServiceOneRemote instead of ServiceOne/remote-org.jboss.ejb3.test.service.ServiceOneRemote. As a result, the deployment of the jar file fails with


      2008-10-22 15:13:33,438 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) java.lang.RuntimeException: Unable to inject jndi dependency: env/org.jboss.ejb3.test.service.ServiceThree/serviceOne into property org.jboss.ejb3.test.service.ServiceThree.serviceOne: remote-org.jboss.ejb3.test.service.ServiceOneRemote not bound
      2008-10-22 15:13:33,454 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at org.jboss.injection.JndiPropertyInjector.lookup(JndiPropertyInjector.java:82)
      2008-10-22 15:13:33,454 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:99)
      2008-10-22 15:13:33,454 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:89)
      2008-10-22 15:13:33,470 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at org.jboss.injection.JndiPropertyInjector.inject(JndiPropertyInjector.java:61)
      2008-10-22 15:13:33,470 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at org.jboss.ejb3.service.ServiceContainer.injectDependencies(ServiceContainer.java:531)
      2008-10-22 15:13:33,470 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at org.jboss.ejb3.service.ServiceContainer.lockedStart(ServiceContainer.java:252)
      2008-10-22 15:13:33,470 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:869)
      2008-10-22 15:13:33,485 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2008-10-22 15:13:33,485 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      2008-10-22 15:13:33,485 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-10-22 15:13:33,485 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at java.lang.reflect.Method.invoke(Method.java:585)
      2008-10-22 15:13:33,501 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at
      
      .....
      
      2008-10-22 15:13:34,126 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) Caused by: javax.naming.NameNotFoundException: remote-org.jboss.ejb3.test.service.ServiceOneRemote not bound
       2008-10-22 15:13:34,126 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at org.jnp.server.NamingServer.getBinding(NamingServer.java:764)
      2008-10-22 15:13:34,142 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at org.jnp.server.NamingServer.getBinding(NamingServer.java:772)
      2008-10-22 15:13:34,142 ERROR [STDERR] (RMI TCP Connection(6)-172.21.16.102) at
      
      
      


      Here's the deployment time logs which shows that the ServiceOne supplies ServiceOne/remote-org.jboss.ejb3.test.service.ServiceOneRemote whereas ServiceThree demands remote-org.jboss.ejb3.test.service.ServiceOneRemote:
      2008-10-22 17:05:22,772 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Created KernelDeployment for: service-test.jar
      2008-10-22 17:05:22,772 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=ServiceFive,service=EJB3
      2008-10-22 17:05:22,772 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
      2008-10-22 17:05:22,788 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
      2008-10-22 17:05:22,788 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.j2ee:jar=service-test.jar,name=ServiceFour,service=EJB3,type=ManagementInterface
      2008-10-22 17:05:22,788 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb3:is=serviceThree,management=interface,with=customName
      2008-10-22 17:05:22,788 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
      2008-10-22 17:05:22,804 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
      2008-10-22 17:05:22,804 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceFive/remote
      2008-10-22 17:05:22,804 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceFiveManagement
      2008-10-22 17:05:22,804 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=ServiceFive,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:22,819 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=ServiceFive,service=EJB3
      2008-10-22 17:05:22,819 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=ServiceFour,service=EJB3
      2008-10-22 17:05:22,819 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
      2008-10-22 17:05:22,819 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
      2008-10-22 17:05:22,819 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb3:is=serviceThree,management=interface,with=customName
      2008-10-22 17:05:22,819 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
      2008-10-22 17:05:22,835 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
      2008-10-22 17:05:22,835 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceFour/remote
      2008-10-22 17:05:22,835 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceFourManagement
      2008-10-22 17:05:22,835 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=ServiceFour,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:22,851 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=ServiceFour,service=EJB3
      2008-10-22 17:05:22,851 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=ServiceOne,service=EJB3
       2008-10-22 17:05:22,851 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
       2008-10-22 17:05:22,851 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
       2008-10-22 17:05:22,851 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) persistence.unit:unitName=#test
       2008-10-22 17:05:22,866 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.StatelessRemote
       2008-10-22 17:05:22,866 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
       2008-10-22 17:05:22,866 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
       2008-10-22 17:05:22,866 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceOne/remote-org.jboss.ejb3.test.service.ServiceOneRemote
       2008-10-22 17:05:22,882 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceOneRemote
       2008-10-22 17:05:22,882 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceOneLocal
       2008-10-22 17:05:22,882 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceOne/remote
       2008-10-22 17:05:22,882 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceOne/local-org.jboss.ejb3.test.service.ServiceOneLocal
       2008-10-22 17:05:22,897 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceOne/local
       2008-10-22 17:05:22,897 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceOneManagement
      
      2008-10-22 17:05:22,897 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=ServiceOne,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:22,897 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=ServiceOne,service=EJB3
      2008-10-22 17:05:22,897 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=ServiceSeven,service=EJB3
      2008-10-22 17:05:22,913 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
      2008-10-22 17:05:22,913 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
      2008-10-22 17:05:22,913 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
      2008-10-22 17:05:22,913 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
      2008-10-22 17:05:22,913 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceSeven/local-org.jboss.ejb3.test.service.ServiceSevenLocal
      2008-10-22 17:05:22,929 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceSevenLocal
      2008-10-22 17:05:22,929 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceSeven/remote-org.jboss.ejb3.test.service.ServiceSevenRemote
      2008-10-22 17:05:22,929 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceSeven/remote
      2008-10-22 17:05:22,929 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceSevenManagement
      2008-10-22 17:05:22,944 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceSeven/local
      2008-10-22 17:05:22,944 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceSevenRemote
      2008-10-22 17:05:22,944 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=ServiceSeven,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:22,944 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=ServiceSeven,service=EJB3
      2008-10-22 17:05:22,944 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=ServiceSix,service=EJB3
      2008-10-22 17:05:22,960 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
      2008-10-22 17:05:22,960 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
      2008-10-22 17:05:22,960 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:StatelessBean/local
      2008-10-22 17:05:22,960 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:StatelessBean/remote
      2008-10-22 17:05:22,976 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
      2008-10-22 17:05:22,976 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
      2008-10-22 17:05:22,976 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:serviceSix/local
      2008-10-22 17:05:22,976 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceSixRemote
      2008-10-22 17:05:22,991 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceSix/remote
      2008-10-22 17:05:22,991 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceSixLocal
      2008-10-22 17:05:22,991 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=ServiceSix,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:22,991 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=ServiceSix,service=EJB3
      2008-10-22 17:05:22,991 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=ServiceThree,service=EJB3
       2008-10-22 17:05:23,007 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
       2008-10-22 17:05:23,007 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
       2008-10-22 17:05:23,007 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceOneRemote
       2008-10-22 17:05:23,007 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.j2ee:jar=service-test.jar,name=ServiceOne,service=EJB3,type=ManagementInterface
       2008-10-22 17:05:23,007 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.j2ee:jar=service-test.jar,name=ServiceTwo,service=EJB3
       2008-10-22 17:05:23,022 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
       2008-10-22 17:05:23,022 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:remote-org.jboss.ejb3.test.service.ServiceOneRemote
       2008-10-22 17:05:23,022 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
       2008-10-22 17:05:23,022 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceThree/remote
       2008-10-22 17:05:23,038 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceThreeManagement
      
      2008-10-22 17:05:23,038 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=ServiceThree,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:23,038 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=ServiceThree,service=EJB3
      2008-10-22 17:05:23,038 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=ServiceTwo,service=EJB3
      2008-10-22 17:05:23,038 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
      2008-10-22 17:05:23,054 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
      2008-10-22 17:05:23,054 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.j2ee:jar=service-test.jar,name=ServiceOne,service=EJB3,type=ManagementInterface
      2008-10-22 17:05:23,054 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
      2008-10-22 17:05:23,054 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
      2008-10-22 17:05:23,069 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:serviceTwo/remote
      2008-10-22 17:05:23,069 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceTwo/remote-org.jboss.ejb3.test.service.ServiceTwoRemote
      2008-10-22 17:05:23,069 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceTwo/local
      2008-10-22 17:05:23,069 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceTwo/local-org.jboss.ejb3.test.service.ServiceTwoLocal
      2008-10-22 17:05:23,085 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:ServiceTwo/remote
      2008-10-22 17:05:23,085 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceTwoRemote
      2008-10-22 17:05:23,085 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.ServiceTwoLocal
      2008-10-22 17:05:23,085 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=ServiceTwo,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:23,101 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=ServiceTwo,service=EJB3
      2008-10-22 17:05:23,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=Session,service=EJB3
      2008-10-22 17:05:23,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
      2008-10-22 17:05:23,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
      2008-10-22 17:05:23,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.j2ee:jar=service-test.jar,name=ServiceOne,service=EJB3,type=ManagementInterface
      2008-10-22 17:05:23,101 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
      2008-10-22 17:05:23,116 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
      2008-10-22 17:05:23,116 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:Session/remote-org.jboss.ejb3.test.service.SessionRemote
      2008-10-22 17:05:23,116 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.SessionRemote
      2008-10-22 17:05:23,116 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:Session/remote
      2008-10-22 17:05:23,132 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=Session,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:23,132 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=Session,service=EJB3
      2008-10-22 17:05:23,132 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=SessionBean,service=EJB3
      2008-10-22 17:05:23,132 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
      2008-10-22 17:05:23,132 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
      2008-10-22 17:05:23,147 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
      2008-10-22 17:05:23,147 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
      2008-10-22 17:05:23,147 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.SessionRemote
      2008-10-22 17:05:23,147 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:SessionBean/remote
      2008-10-22 17:05:23,163 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:SessionBean/remote-org.jboss.ejb3.test.service.SessionRemote
      2008-10-22 17:05:23,163 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=SessionBean,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:23,163 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=SessionBean,service=EJB3
      2008-10-22 17:05:23,163 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=StatelessBean,service=EJB3
      2008-10-22 17:05:23,163 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
      2008-10-22 17:05:23,179 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
      2008-10-22 17:05:23,179 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
      2008-10-22 17:05:23,179 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
      2008-10-22 17:05:23,179 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:StatelessBean/local
      2008-10-22 17:05:23,194 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:StatelessBean/local-org.jboss.ejb3.test.service.StatelessLocal
      2008-10-22 17:05:23,194 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:StatelessBean/remote
      2008-10-22 17:05:23,194 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:StatelessBean/remote-org.jboss.ejb3.test.service.StatelessRemote
      2008-10-22 17:05:23,194 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.StatelessRemote
      2008-10-22 17:05:23,210 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.StatelessLocal
      2008-10-22 17:05:23,210 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=StatelessBean,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:23,210 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=StatelessBean,service=EJB3
      2008-10-22 17:05:23,210 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) installing bean: jboss.j2ee:jar=service-test.jar,name=TestResourceInjectionService,service=EJB3
      2008-10-22 17:05:23,210 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) with dependencies:
      2008-10-22 17:05:23,226 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and demands:
      2008-10-22 17:05:23,226 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.ejb:service=EJBTimerService
      2008-10-22 17:05:23,226 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jboss.mq.destination:name=testTopic,service=Topic
      2008-10-22 17:05:23,226 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) and supplies:
      2008-10-22 17:05:23,241 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Class:org.jboss.ejb3.test.service.TestResourceInjectionServiceIF
      2008-10-22 17:05:23,241 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) jndi:TestResourceInjectionService/remote
      2008-10-22 17:05:23,241 INFO [org.jboss.ejb3.deployers.JBossASKernel] (HDScanner) Added bean(jboss.j2ee:jar=service-test.jar,name=TestResourceInjectionService,service=EJB3) to KernelDeployment of: service-test.jar
      2008-10-22 17:05:23,241 DEBUG [org.jboss.ejb3.Ejb3Deployment] (HDScanner) Bound ejb3 container jboss.j2ee:jar=service-test.jar,name=TestResourceInjectionService,service=EJB3
      
      


      As an workaround (to move forward with my testing), i added a mappedName attribute to the @EJB injection:

      @Service (objectName = "jboss.ejb3:management=interface,with=customName,is=serviceThree")
      @Management(ServiceThreeManagement.class)
      @Depends ({"jboss.j2ee:jar=service-test.jar,name=ServiceTwo,service=EJB3","jboss.j2ee:jar=service-test.jar,name=ServiceOne,service=EJB3,type=ManagementInterface"})
      public class ServiceThree implements ServiceThreeManagement
      {
       // workaround: Inject default business interface through mappedName
       @EJB (mappedName="ServiceOne/remote")
       private ServiceOneRemote serviceOne;
      ...
      }
      
      


      This deployed the jar fine and the testcase ERRORS came down by 2 (so now i have 3 ERRORS and 1 Failure on my local setup with this workaround. Testcase: testServiceDependencyInjectionAndInterception and Testcase: testDependsInjection now pass).

      I'll continue to see if i can figure out why the injection isn't using the correct jndi-name.