Unable to deploy a MDB that implements MessageListener from the parent class

Solution Verified - Updated -

Issue

In one of our applications we have multiple MDB beans that inherit from some AbstractMDB which in turn implements MessageListener. This pattern prevents the MDB to get deployed. Here is the exception I encounter.

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container BankMDBBean: Unable to choose messagingType interface for MDB BankMDBBean from []
        at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:734)
        at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:671)
        at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:653)
        at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:616)
        at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:493)
        at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
        ... 29 more
Caused by: java.lang.RuntimeException: Unable to choose messagingType interface for MDB BankMDBBean from []
        at org.jboss.ejb3.mdb.MDB.getMessagingType(MDB.java:76)
        at org.jboss.ejb3.mdb.MDB.resolveBusinessInterfaces(MDB.java:132)
        at org.jboss.ejb3.EJBContainer.instantiated(EJBContainer.java:1665)
        at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:728)
        ... 34 more
15:09:42,905 WARN  [HDScanner] Failed to process changes
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

What can I do to fix this?

Environment

JBoss Enterprise Application Platform 5.1.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.