glassfish
  1. glassfish
  2. GLASSFISH-19288

Deploying an ear with an ejb jar with a Session bean that specializes another causes AmbiguousDependencyException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_b53
    • Fix Version/s: 4.0_b63
    • Component/s: cdi
    • Labels:
      None

      Description

      Define a specializing ejb like below, place it in a jar in the root directory of an ear. This causes an AmbiguousDependencyException when the injection point is:
      @Inject
      SessionSpecializationService sessionSpecializationService;

      @Local
      public interface SessionSpecializationService {}

      @Stateless
      public class SessionSpecializationServiceImplementation implements SessionSpecializationService {}

      @Stateless
      @Specializes
      public class MockSessionSpecializationService extends SessionSpecializationServiceImplementation {}

        Activity

        Hide
        tlcksnyder added a comment -

        Resolved as of Weld 2.0.0.Beta6.

        Show
        tlcksnyder added a comment - Resolved as of Weld 2.0.0.Beta6.
        Hide
        jjsnyder83 added a comment -

        There seems to be a bug in Weld causing this.

        Show
        jjsnyder83 added a comment - There seems to be a bug in Weld causing this.
        Hide
        jjsnyder83 added a comment -

        The previous change was incorrect. I have reverted the change.
        Committed revision 56969.

        Show
        jjsnyder83 added a comment - The previous change was incorrect. I have reverted the change. Committed revision 56969.

          People

          • Assignee:
            jjsnyder83
            Reporter:
            jjsnyder83
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: