Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6122

Regression: Unable to deploy self referencing EJB3 session bean

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • JBossAS-5.0.0.CR2
    • EJB
    • None

    Description

      The following stateless EJB which has a self reference using @EJBs() annotation deploys fine on jboss-4.2.3 but fails to deploy on jboss-5.0.0CR2.

      package test;

      import javax.ejb.*;

      @EJBs(

      {@EJB(name="TestSessionBean/local",beanInterface=LocalTestSession.class,beanName="TestSessionBean")}

      )
      @Stateless(name="TestSessionBean")
      public class TestSessionBean implements LocalTestSession {
      public String test() {
      try

      { InitialContext ic = new InitialContext(); LocalTestSession lc = (LocalTestSession) ic.lookup("java:comp/env/TestSessionBean/local"); System.out.println(lc.test1()); }

      catch (NamingException e)

      { e.printStackTrace(); }

      return "test";
      }

      public String test1()

      { return "test1"; }

      }

      When deploying the jar on jboss-5.0.0CR2 I get the following error:

      09:57:19,227 WARN [HDScanner] Failed to process changes
      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:ear=test.jar,jar=test.jar,name=TestSessionBean,service=EJB3
      -> <UNKNOWN jboss.j2ee:ear=test.jar,jar=test.jar,name=TestSessionBean,service=EJB3>

      {Described:** UNRESOLVED Demands 'jndi:TestSessionBean/local-test.LocalTestSession' **}
          • CONTEXTS IN ERROR: Name -> Error

      <UNKNOWN jboss.j2ee:ear=test.jar,jar=test.jar,name=TestSessionBean,service=EJB3> -> ** UNRESOLVED Demands 'jndi:TestSessionBean/local-test.LocalTestSession' **

      Attachments

        Activity

          People

            rhn-engineering-cdewolf Carlo de Wolf
            rradu Radu Radutiu (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: