8 Replies Latest reply on Nov 26, 2008 4:17 PM by Ales Justin

    DU cannot supply own demands?

    Andrew Rubinger Master

      I've got https://jira.jboss.org/jira/browse/EJBTHREE-1603.

      The construct is:

      @Stateless
      @Remote(SelfDependencyRemoteBusiness.class)
      @Local(SelfDependencyLocalBusiness.class)
      public class SelfDependencyBean implements SelfDependencyLocalBusiness, SelfDependencyRemoteBusiness
      {
       @EJB
       private SelfDependencyLocalBusiness local;
      
      ...
      }


      ...so the EJB both supplies and demands the local view.

      22:04:16,092 INFO [JBossASKernel] Created KernelDeployment for: ejbthree1603.jar
      22:04:16,093 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=ejbthree1603.jar,name=SelfDependencyBean,service=EJB3
      22:04:16,093 INFO [JBossASKernel] with dependencies:
      22:04:16,093 INFO [JBossASKernel] and demands:
       22:04:16,093 INFO [JBossASKernel] jndi:SelfDependencyBean/local-org.jboss.ejb3.test.ejbthree1603.SelfDependencyLocalBusiness
      22:04:16,093 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      22:04:16,093 INFO [JBossASKernel] and supplies:
      22:04:16,094 INFO [JBossASKernel] jndi:SelfDependencyBean/remote-org.jboss.ejb3.test.ejbthree1603.SelfDependencyRemoteBusiness
      22:04:16,094 INFO [JBossASKernel] jndi:SelfDependencyBean/local-org.jboss.ejb3.test.ejbthree1603.SelfDependencyLocalBusiness
      22:04:16,094 INFO [JBossASKernel] Class:org.jboss.ejb3.test.ejbthree1603.SelfDependencyLocalBusiness
      22:04:16,094 INFO [JBossASKernel] jndi:SelfDependencyBean/remote
      22:04:16,094 INFO [JBossASKernel] Class:org.jboss.ejb3.test.ejbthree1603.SelfDependencyRemoteBusiness
      22:04:16,094 INFO [JBossASKernel] jndi:SelfDependencyBean/local
      22:04:16,094 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=ejbthree1603.jar,name=SelfDependencyBean,service=EJB3) to KernelDeployment of: ejbthree1603.jar


      Yet we get:

      22:04:16,155 WARN [MainDeployer] Failed to deploy: file:/home/alrubinger/business/jboss/wc/jbossas/projects/ejb3/trunk/testsuite/target/test-lib/ejbthree1603.jar
      org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
      
      *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      
      jboss.j2ee:jar=ejbthree1603.jar,name=SelfDependencyBean,service=EJB3
       -> <UNKNOWN jboss.j2ee:jar=ejbthree1603.jar,name=SelfDependencyBean,service=EJB3>{Described:** UNRESOLVED Demands 'jndi:SelfDependencyBean/local-org.jboss.ejb3.test.ejbthree1603.SelfDependencyLocalBusiness' **}
      
      
      *** CONTEXTS IN ERROR: Name -> Error
      
      <UNKNOWN jboss.j2ee:jar=ejbthree1603.jar,name=SelfDependencyBean,service=EJB3> -> ** UNRESOLVED Demands 'jndi:SelfDependencyBean/local-org.jboss.ejb3.test.ejbthree1603.SelfDependencyLocalBusiness' **


      S,
      ALR