WFLYEJB0094: EJB 3.1 FR 5.4.2 MessageDrivenBean does not implement 1 interface nor specifies message listener interface in JBoss EAP 7.2
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.2
Issue
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
Resolution
This is an issue raised in This content is not included.JBEAP-18794
Root Cause
The JBoss EAP creates one instance of org.jboss.as.server.deployment.annotation.ContextIndex per module and it does not found the information of super class when it came from another module. As the super class information are not find, the JBoss EAP context does not find the listener interface.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.