Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13152

WFLYEJB0094: EJB 3.1 FR 5.4.2 MessageDrivenBean does not implement 1 interface nor specifies message listener interface

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 20.0.0.Beta1, 20.0.0.Final
    • 17.0.1.Final
    • EJB
    • None
    • Hide
      1. Unzip both projects.
      2. Go to LIB_HOME and apply this maven command to install the lib in you local repository --> mvn clean install
      3. Go to EAR_HOME and apply this maven command to package the application --> mvn clean package
      4. Deploy the application and test.
      Show
      Unzip both projects. Go to LIB_HOME and apply this maven command to install the lib in you local repository --> mvn clean install Go to EAR_HOME and apply this maven command to package the application --> mvn clean package Deploy the application and test.
    • Hide

      As an workaround the subclass can Implements MessageListener.

      public class ReceiverMdb extends AbstractMdb implements MessageListener{
      ...
      }
      
      Show
      As an workaround the subclass can Implements MessageListener. public class ReceiverMdb extends AbstractMdb implements MessageListener{ ... }

      The MDB does not works when it extends a superclass that comes from an external JAR and this super class implements the MessageListener. It generates this exception:

      WFLYEJB0094: EJB 3.1 FR 5.4.2 MessageDrivenBean com.exemple.MyMDB does not implement 1 interface nor specifies message listener interface
      

      These are what I have noted:

      • It only happens in a EAR project. In a WAR project it works fine.
      • It only happens when the abstract class come from an external JAR
      • If the sub class implements directly the MessageListener or if the messageListenerInterface is defined in the annotation it works fine.

        1. samplemdbear.zip
          9.59 MB
        2. lib.zip
          10 kB

              cfang@redhat.com Cheng Fang
              rhn-support-rhsilva Rhuan Rocha (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: