2 Replies Latest reply on Jun 2, 2014 3:25 AM by Gregor Kovač

    JBAS014544: No EJB found with interface of type

    Gregor Kovač Newbie

      I have an EAR with an Stateless EJB that implements a Remote interface.

      In another application (WAR) I access his EJB like thi: @EJB(beanInterface=RemoteBean.class) RemoteBean bean; When I deploy EAR I can see the JNDI name of the EJB, but when I deploy WAR I get error: JBAS014544: No EJB found with interface of type .....

      I get the same error if I remove the beanInterface part.

       

      When I deploy/enable WildflyTest-ear-1.0-SNAPSHOT.ear I get:

      19:10:06,644 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "WildflyTest-ear-1.0-SNAPSHOT.ear" (runtime-name: "WildflyTest-ear-1.0-SNAPSHOT.ear")
      19:10:06,663 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015973: Starting subdeployment (runtime-name: "WildflyTest-ejb-1.0-SNAPSHOT.jar")
      19:10:06,663 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015973: Starting subdeployment (runtime-name: "WildflyTest-web-1.0-SNAPSHOT.war")
      19:10:06,691 INFO  [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016002: Processing weld deployment WildflyTest-ear-1.0-SNAPSHOT.ear
      19:10:06,703 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment WildflyTest-web-1.0-SNAPSHOT.war
      19:10:06,704 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016002: Processing weld deployment WildflyTest-ejb-1.0-SNAPSHOT.jar
      19:10:06,737 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-4) JNDI bindings for session bean named HelloWorld in deployment unit subdeployment "WildflyTest-ejb-1.0-SNAPSHOT.jar" of deployment "WildflyTest-ear-1.0-SNAPSHOT.ear" are as follows:
      
      
        java:global/WildflyTest-ear-1.0-SNAPSHOT/WildflyTest-ejb-1.0-SNAPSHOT/HelloWorld!com.kovi.wildflytest.interfaces.HelloWorldInterface$RemoteI
        java:app/WildflyTest-ejb-1.0-SNAPSHOT/HelloWorld!com.kovi.wildflytest.interfaces.HelloWorldInterface$RemoteI
        java:module/HelloWorld!com.kovi.wildflytest.interfaces.HelloWorldInterface$RemoteI
        java:jboss/exported/WildflyTest-ear-1.0-SNAPSHOT/WildflyTest-ejb-1.0-SNAPSHOT/HelloWorld!com.kovi.wildflytest.interfaces.HelloWorldInterface$RemoteI
        java:global/WildflyTest-ear-1.0-SNAPSHOT/WildflyTest-ejb-1.0-SNAPSHOT/HelloWorld!com.kovi.wildflytest.interfaces.HelloWorldInterface$LocalI
        java:app/WildflyTest-ejb-1.0-SNAPSHOT/HelloWorld!com.kovi.wildflytest.interfaces.HelloWorldInterface$LocalI
        java:module/HelloWorld!com.kovi.wildflytest.interfaces.HelloWorldInterface$LocalI
      
      
      19:10:06,740 INFO  [org.jboss.weld.deployer] (MSC service thread 1-4) JBAS016005: Starting Services for CDI deployment: WildflyTest-ear-1.0-SNAPSHOT.ear
      19:10:06,746 INFO  [org.jboss.weld.deployer] (MSC service thread 1-8) JBAS016008: Starting weld service for deployment WildflyTest-ear-1.0-SNAPSHOT.ear
      19:10:06,772 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017534: Registered web context: /WildflyTest-web
      19:10:07,106 INFO  [org.jboss.as.server] (XNIO-1 task-10) JBAS018559: Deployed "WildflyTest-ear-1.0-SNAPSHOT.ear" (runtime-name : "WildflyTest-ear-1.0-SNAPSHOT.ear")
      19:10:07,106 INFO  [org.jboss.as.controller] (XNIO-1 task-10) JBAS014774: Service status report
      JBAS014776:    Newly corrected services:
            service jboss.deployment.unit."WildFlyTest-rest-1.0-SNAPSHOT.war".beanmanager (no longer required)
      

       

      but when I deploy/enable WildFlyTest-rest-1.0-SNAPSHOT.war I get:

      19:13:16,196 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015876: Starting deployment of "WildFlyTest-rest-1.0-SNAPSHOT.war" (runtime-name: "WildFlyTest-rest-1.0-SNAPSHOT.war")
      19:13:16,218 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016002: Processing weld deployment WildFlyTest-rest-1.0-SNAPSHOT.war
      19:13:16,224 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-6) JNDI bindings for session bean named HelloWorldRest in deployment unit deployment "WildFlyTest-rest-1.0-SNAPSHOT.war" are as follows:
      
      
        java:global/WildFlyTest-rest-1.0-SNAPSHOT/HelloWorldRest!com.kovi.wildflytest.rest.HelloWorldRest
        java:app/WildFlyTest-rest-1.0-SNAPSHOT/HelloWorldRest!com.kovi.wildflytest.rest.HelloWorldRest
        java:module/HelloWorldRest!com.kovi.wildflytest.rest.HelloWorldRest
        java:global/WildFlyTest-rest-1.0-SNAPSHOT/HelloWorldRest
        java:app/WildFlyTest-rest-1.0-SNAPSHOT/HelloWorldRest
        java:module/HelloWorldRest
      
      
      19:13:16,246 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.deployment.unit."WildFlyTest-rest-1.0-SNAPSHOT.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."WildFlyTest-rest-1.0-SNAPSHOT.war".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment "WildFlyTest-rest-1.0-SNAPSHOT.war"
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
        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]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014544: No EJB found with interface of type 'com.kovi.wildflytest.interfaces.HelloWorldInterface$RemoteI' for binding com.kovi.wildflytest.rest.HelloWorldRest/helloWorldBean
        at org.jboss.as.ejb3.deployment.processors.EjbInjectionSource.getResourceValue(EjbInjectionSource.java:90)
        at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.addJndiBinding(ModuleJndiBindingProcessor.java:215)
        at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor$1.handle(ModuleJndiBindingProcessor.java:184)
        at org.jboss.as.ee.component.ClassDescriptionTraversal.run(ClassDescriptionTraversal.java:54)
        at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.processClassConfigurations(ModuleJndiBindingProcessor.java:152)
        at org.jboss.as.ee.component.deployers.ModuleJndiBindingProcessor.deploy(ModuleJndiBindingProcessor.java:145)
        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
        ... 5 more
      
      
      19:13:16,250 ERROR [org.jboss.as.controller.management-operation] (XNIO-1 task-7) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "WildFlyTest-rest-1.0-SNAPSHOT.war")]) - failure description: {
          "JBAS014671: Failed services" => {"jboss.deployment.unit.\"WildFlyTest-rest-1.0-SNAPSHOT.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WildFlyTest-rest-1.0-SNAPSHOT.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"WildFlyTest-rest-1.0-SNAPSHOT.war\"
          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014544: No EJB found with interface of type 'com.kovi.wildflytest.interfaces.HelloWorldInterface$RemoteI' for binding com.kovi.wildflytest.rest.HelloWorldRest/helloWorldBean"},
          "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"WildFlyTest-rest-1.0-SNAPSHOT.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"WildFlyTest-rest-1.0-SNAPSHOT.war\".beanmanager]"]
      }
      19:13:16,251 ERROR [org.jboss.as.server] (XNIO-1 task-7) JBAS015870: Deploy of deployment "WildFlyTest-rest-1.0-SNAPSHOT.war" was rolled back with the following failure message: 
      {
          "JBAS014671: Failed services" => {"jboss.deployment.unit.\"WildFlyTest-rest-1.0-SNAPSHOT.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"WildFlyTest-rest-1.0-SNAPSHOT.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of deployment \"WildFlyTest-rest-1.0-SNAPSHOT.war\"
          Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014544: No EJB found with interface of type 'com.kovi.wildflytest.interfaces.HelloWorldInterface$RemoteI' for binding com.kovi.wildflytest.rest.HelloWorldRest/helloWorldBean"},
          "JBAS014771: Services with missing/unavailable dependencies" => ["jboss.deployment.unit.\"WildFlyTest-rest-1.0-SNAPSHOT.war\".weld.weldClassIntrospector is missing [jboss.deployment.unit.\"WildFlyTest-rest-1.0-SNAPSHOT.war\".beanmanager]"]
      }
      19:13:16,255 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment WildFlyTest-rest-1.0-SNAPSHOT.war (runtime-name: WildFlyTest-rest-1.0-SNAPSHOT.war) in 3ms
      19:13:16,256 INFO  [org.jboss.as.controller] (XNIO-1 task-7) JBAS014774: Service status report
      JBAS014775:    New missing/unsatisfied dependencies:
            service jboss.deployment.unit."WildFlyTest-rest-1.0-SNAPSHOT.war".beanmanager (missing) dependents: [service jboss.deployment.unit."WildFlyTest-rest-1.0-SNAPSHOT.war".weld.weldClassIntrospector] 
      JBAS014777:   Services which failed to start:      service jboss.deployment.unit."WildFlyTest-rest-1.0-SNAPSHOT.war".INSTALL
      

      What am I doing wrong, because the same application works on Glassfish 3.1.2.2?

       

      I'm using  wildfly 8.1.Final.