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

      Hi,

      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">
                  <resource-adapters>
                      <resource-adapter>
                          <archive>
                              MailServerConnector.rar
                          </archive>
                          <connection-definitions>
                              <connection-definition class-name="org.atmosfair.mail.MailServerConnector" jndi-name="java:jboss/atmosfair/MailServerConnector" pool-name="MailServerConnector">
                                  <pool>
                                      <min-pool-size>
                                          10
                                      </min-pool-size>
                                      <max-pool-size>
                                          100
                                      </max-pool-size>
                                  </pool>
                                  <security>
                                      <application/>
                                  </security>
                              </connection-definition>
                          </connection-definitions>
                      </resource-adapter>
                  </resource-adapters>
            </subsystem>
      

       

      The Implementation of the RA looks as follows:

       

      @Connector
      public class MailResourceAdapter implements ResourceAdapter {
           ...
      }
      

       

      The MDB:

       

      @MessageDriven(messageListenerInterface=IMailListener.class,
                activationConfig={})
      @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.