1 Reply Latest reply on Jun 4, 2012 1:33 PM by Wolf-Dieter Fink

    Unable to bind to no-interface ejb

    Amr Abdel Majeed Newbie

      I have a no-interface ejb deployed in an ear (MyEar.ear)



      public class MyService{




      The ear is deployed to jboss-6.0.0.Final


      Here is the jmx entry:




      I'm trying to reference this ejb from another war in the same server:


      @EJB(mappedName = "MyEar/MyService/local")

                private MyService myService;


      But i keep getting an exception when deploying:


      java.lang.ClassNotFoundException: eg.com.test.MyService


      I also tried


      @EJB(mappedName = "MyEar/MyService/no-interface")

        private MyService myService;


      but i get the same exception.