Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-729

Injecting a EJB 2.1 bean in EJB 3 bean can show misleading warning message: IGNORING DEPENDENCY:...

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • Branch_4_2
    • EJB 3.0 RC9 - FD
    • None
    • None
    • Medium

      An EJB 2.1 bean injected in a EJB 3 bean via:

      @EJB(mappedName="ejb/IdGenerator")
      private IdGeneratorHome idGeneratorHome;

      leads to the following warning message being logged:
      "server.log:6202:2006-10-05 14:28:36,171 WARN [org.jboss.injection.EJBHandler] IGNORING DEPENDENCY: unable to find @EJB from interface only
      com.acme.ejb2.uuid.IdGeneratorHome in ejb-jar.xml of SqlTimeStampBeannot used by any EJBs"

      The message is misleading as it seems to indicate that the
      dependency was not set, but it actually did. Create call on the
      home interface works returning a valid bean.

            rh-ee-galder Galder ZamarreƱo
            rh-ee-galder Galder ZamarreƱo
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: