8 Replies Latest reply on Mar 18, 2015 8:56 PM by Aung Htet

    JBAS014521: No message listener of type in ResourceAdapter

    Franz Goerke Newbie


      I am trying to deploy a Resource Adapter (MailServerConnector) with a corresponding MDB On Jboss 7.1 CR1. The deployment of the RA works well. But if I deploy the MDB I get the following exception:

      java.lang.IllegalStateException: JBAS014521: No message listener of type org.atmosfair.mail.IMailListener found in resource adapter MailServerConnector


      I have the following configuration of my RA in the standalone.xml



           <subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
                              <connection-definition class-name="org.atmosfair.mail.MailServerConnector" jndi-name="java:jboss/atmosfair/MailServerConnector" pool-name="MailServerConnector">


      The Implementation of the RA looks as follows:


      public class MailResourceAdapter implements ResourceAdapter {


      The MDB:


      @ResourceAdapter(value = "MailServerConnector.rar")
      public class MailReceiver implements IMailListener{


      Maybe you can help me to understand this exception and to resolve this issue. Thanks in advance.