0 Replies Latest reply on Sep 30, 2019 3:05 AM by Rajesh M

    javax.ejb.NoSuchEJBException:  No such EJB: SMEServices/SMEApps/SMEServiceHome @ http-remoting://localhost:8080

    Rajesh M Newbie

      I have deployed my application successfully in JBoss EAP 7.1. But while calling EJB bean, am getting below error.

      Kindly help me to resolve this

       

      Code:

       

       

              final String appName = "SMEServices";

        

              final String moduleName = "SMEApps";

         

              final String beanName = SMEServiceHome.class.getSimpleName();

              // the remote view fully qualified class name

              final String viewClassName = SMEServiceHome.class.getName();

              // let's do the lookup

       

      return (SMEService)getRemoteService("ejb:" + appName + "/" + moduleName +  "/" + beanName + "!" + viewClassName, SMEServiceHome.class);

       

       

       

      17:35:45,026 ERROR [stderr] (default task-1) java.lang.reflect.InvocationTargetException

      17:35:45,026 ERROR [stderr] (default task-1)    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      17:35:45,026 ERROR [stderr] (default task-1)    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

      17:35:45,027 ERROR [stderr] (default task-1)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      1

       

      javax.ejb.NoSuchEJBException: No such EJB: SMEServices/SMEApps/SMEServiceHome @ http-remoting://localhost:8080