3 Replies Latest reply on Oct 21, 2014 5:05 AM by André Lemos

    JBAS014521: No message listener of type

    André Lemos Newbie

      Hi,

       

       

      I am trying to use a custom resource adapter to receive socket connections on my ejb.

       

      The problem is, right after the .rar is fired up

       

      17:44:59,436 INFO  [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-3) IJ020002: Deployed: file:/Users/user/Documents/playground/wildfly-8.1.0.Final/standalone/tmp/vfs/deployment/deployment30e7c35960719fd8/backend-rar.rar-bd64f428dbe7d3a2/contents/

       

      I get:

       

      17:45:00,077 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.subunit."backend-ear.ear"."backend-ejb.jar".component.SKT_MDB.CREATE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."backend-ear.ear"."backend-ejb.jar".component.SKT_MDB.CREATE: Failed to start service

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

        at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

      Caused by: java.lang.IllegalStateException: JBAS014521: No message listener of type com.server.i.jca.SocketMessageEndpoint found in resource adapter backend-ear.ear#backend-rar.rar

        at org.jboss.as.ejb3.component.EJBUtilities.createActivationSpecs(EJBUtilities.java:105)

        at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.createComponent(MessageDrivenComponentCreateService.java:98)

        at org.jboss.as.ee.component.BasicComponentCreateService.start(BasicComponentCreateService.java:91)

        at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.start(MessageDrivenComponentCreateService.java:80)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

        ... 3 more

       

      My bean has the following:

       

      @MessageDriven(name = "SKT_MDB",
              activationConfig = {@ActivationConfigProperty(propertyName="port", propertyValue = "9091")})
      @ResourceAdapter(value="backend-ear.ear#backend-rar")
      public class SocketMessageDrivenBean implements MessageDrivenBean, com.server.i.jca.SocketMessageEndpoint {
      
      
      

       

       

      And the structure is:

       

      ear

      - backend-ejb.jar

      - backend-rar.jar

      - lib/backend-rar-api.jar

       

      This is running WildFly 8.1.0.Final.

       

       

      Any hints? Thank you!