4 Replies Latest reply on Apr 21, 2013 11:02 AM by Ivan Kostyuk

    JBoss AS 7.1.1 remote EJB lookup causes - No EJB receiver available for handling

    Ivan Kostyuk Newbie

      Hello.

       

      Reading of post and documentation (https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI) did not help me much. With JBoss4 everything was simple. I can call my EJB from server in Jboss AS 7.1.1. But, I need to call it from external client.

      I took project from the link above about

      EJB invocations from a remote client using JNDI

      I read that some people manage to solve the problem, but still, I cannot get how they did it.

      Could anyone give a solution? At least to point right direction.

      Using the project above (only stateful part). JBoss running with default configuration (OOB).

       

       

       

      Server output:

       


      java:global/CalcExPrj/CounterBean!stateful.RemoteCounter

      java:app/CalcExPrj/CounterBean!stateful.RemoteCounter

      java:module/CounterBean!stateful.RemoteCounter

      java:jboss/exported/CalcExPrj/CounterBean!stateful.RemoteCounter

      java:global/CalcExPrj/CounterBean

      java:app/CalcExPrj/CounterBean

      java:module/CounterBean

       

      Client output:

      javax.naming.NamingException: Failed to create proxy [Root exception is java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:jboss-as-ejb-remote-server-side,distinctname:] combination]

                at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:115)

                at org.jboss.ejb.client.naming.ejb.EjbNamingContext.lookup(EjbNamingContext.java:96)

                at javax.naming.InitialContext.lookup(Unknown Source)

                at client.RemoteEJBClient.lookupRemoteStatefulCounter(RemoteEJBClient.java:75)

                at client.RemoteEJBClient.invokeStatefulBean(RemoteEJBClient.java:19)

                at client.RemoteEJBClient.main(RemoteEJBClient.java:14)

      Caused by: java.lang.IllegalStateException: No EJB receiver available for handling [appName:,modulename:jboss-as-ejb-remote-server-side,distinctname:] combination

                at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:517)

                at org.jboss.ejb.client.EJBClient.createSession(EJBClient.java:161)

                at org.jboss.ejb.client.naming.ejb.EjbNamingContext.doCreateProxy(EjbNamingContext.java:135)

                at org.jboss.ejb.client.naming.ejb.EjbNamingContext.createEjbProxy(EjbNamingContext.java:113)

                ... 5 more