1 2 Previous Next 16 Replies Latest reply on Mar 9, 2015 10:50 PM by bob bell

    ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final

    vinay kumar Newbie

      Hi All,

       

      I have a situation where i have deployed ejb's on two different servers and i need to invoke ejb's on destination server from client server ejb.

       

      Client server i have deployed a remoteEJBcli-1.0.ear

       

      17:28:09,757 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named ClientIn

      tBean in deployment unit subdeployment "ejbbeancli-1.0.jar" of deployment "remoteEJBcli-1.0.ear" are as follows:

       

       

              java:global/remoteEJBcli-1.0/ejbbeancli-1.0/ClientIntBean!org.myapp.ejb.ClientInt

              java:app/ejbbeancli-1.0/ClientIntBean!org.myapp.ejb.ClientInt

              java:module/ClientIntBean!org.myapp.ejb.ClientInt

              java:jboss/exported/remoteEJBcli-1.0/ejbbeancli-1.0/ClientIntBean!org.myapp.ejb.ClientInt

              java:global/remoteEJBcli-1.0/ejbbeancli-1.0/ClientIntBean

              java:app/ejbbeancli-1.0/ClientIntBean

              java:module/ClientIntBean

       

      On the client server i also have a ejbweb-1.0.war deployed which will invoke the ejb's

       

      Destination server i have deployed another ear remoteEJB-1.0.ear

       

      17:27:55,265 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named GetlostB

      ean in deployment unit subdeployment "ejbbean-1.0.jar" of deployment "remoteEJB-1.0.ear" are as follows:

       

       

              java:global/remoteEJB-1.0/ejbbean-1.0/GetlostBean!org.myapp.ejb.Getlost

              java:app/ejbbean-1.0/GetlostBean!org.myapp.ejb.Getlost

              java:module/GetlostBean!org.myapp.ejb.Getlost

              java:jboss/exported/remoteEJB-1.0/ejbbean-1.0/GetlostBean!org.myapp.ejb.Getlost

              java:global/remoteEJB-1.0/ejbbean-1.0/GetlostBean

              java:app/ejbbean-1.0/GetlostBean

              java:module/GetlostBean

       

       

      17:27:55,299 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named GreeterB

      ean in deployment unit subdeployment "ejbbean-1.0.jar" of deployment "remoteEJB-1.0.ear" are as follows:

       

       

              java:global/remoteEJB-1.0/ejbbean-1.0/GreeterBean!org.myapp.ejb.Greeter

              java:app/ejbbean-1.0/GreeterBean!org.myapp.ejb.Greeter

              java:module/GreeterBean!org.myapp.ejb.Greeter

              java:jboss/exported/remoteEJB-1.0/ejbbean-1.0/GreeterBean!org.myapp.ejb.Greeter

              java:global/remoteEJB-1.0/ejbbean-1.0/GreeterBean

              java:app/ejbbean-1.0/GreeterBean

              java:module/GreeterBean

       

      The remote call from the client works fine when not going through from the client deployed ejb.

       

      17:28:19,681 INFO  [stdout] (http-/127.0.0.1:8180-1) Received greeting: Hello Vinay, have a pleasant day!

      17:28:19,694 INFO  [stdout] (http-/127.0.0.1:8180-1) Received greeting: Hello Kumar, get lost!

       

      If i try to invoke the same by invoking the destination ejb through the client ejb i get the below exceptions:

       

      17:28:19,681 INFO  [stdout] (http-/127.0.0.1:8180-1) Received greeting: Hello Vinay, have a pleasant day!

      17:28:19,694 INFO  [stdout] (http-/127.0.0.1:8180-1) Received greeting: Hello Kumar, get lost!

      17:28:19,711 INFO  [stdout] (http-/127.0.0.1:8180-1) inside cli.................

      17:28:19,715 ERROR [org.jboss.as.ejb3.invocation] (http-/127.0.0.1:8180-1) JBAS014134: EJB Invocation failed on component ClientIntBean for method public abstract java.la

      ng.String org.myapp.ejb.ClientInt.cli(java.lang.String) throws java.lang.Exception: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.IllegalStateException: E

      JBCLIENT000025: No EJB receiver available for handling [appName:remoteEJB-1.0, moduleName:ejbbean-1.0, distinctName:] combination for invocation context org.jboss.ejb.cli

      ent.EJBClientInvocationContext@f5b2da

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:164) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:302) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:188) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) [jboss-as-ejb3-7.1.3.

      Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.

      3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) [jboss-as-ejb3-7.1.3.Final.jar:7.1.

      3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.

      Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:221) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at $Proxy17.cli(Unknown Source) at org.myapp.ejb.EJBApplicationClient.invokeOnBean(EJBApplicationClient.java:37) [ejbclient-1.0.jar:]

              at org.myapp.ejb.EJBApplicationClient.callme(EJBApplicationClient.java:10) [ejbclient-1.0.jar:]

              at org.apache.jsp.test_jsp._jspService(test_jsp.java:57)

              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165)

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372)

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_12]

      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:remoteEJB-1.0, moduleName:ejbbean

      -1.0, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@f5b2da

              at org.myapp.ejb.ClientIntBean.cli(ClientIntBean.java:26) [ejbbeancli-1.0.jar:]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_12]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_12]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_12]

              at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_12]

              at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory

      .java:72) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3

      .Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.3.Final.jar:7.

      1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:226) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              ... 51 more

      Caused by: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:remoteEJB-1.0, moduleName:ejbbean-1.0, distinctName:] combina

      tion for invocation context org.jboss.ejb.client.EJBClientInvocationContext@f5b2da

              at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:588) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at $Proxy15.greet(Unknown Source)       at org.myapp.ejb.ClientIntBean.cli(ClientIntBean.java:22) [ejbbeancli-1.0.jar:]

              ... 72 more

       

       

      17:28:20,002 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ejbweb].[jsp]] (http-/127.0.0.1:8180-1) Servlet.service() for servlet jsp threw ex

      ception: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:remoteEJB-1.0, moduleName:ejbbean-1.0, distinctName:] combinati

      on for invocation context org.jboss.ejb.client.EJBClientInvocationContext@f5b2da

              at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:588) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at $Proxy15.greet(Unknown Source)       at org.myapp.ejb.ClientIntBean.cli(ClientIntBean.java:22)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_12]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_12]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_12]

              at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_12]

              at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory

      .java:72) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3

      .Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.3.Final.jar:7.

      1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:226) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:302) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:188) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) [jboss-as-ejb3-7.1.3.

      Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.

      3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) [jboss-as-ejb3-7.1.3.Final.jar:7.1.

      3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.

      Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

              at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:221) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

              at $Proxy17.cli(Unknown Source) at org.myapp.ejb.EJBApplicationClient.invokeOnBean(EJBApplicationClient.java:37) [ejbclient-1.0.jar:]

              at org.myapp.ejb.EJBApplicationClient.callme(EJBApplicationClient.java:10) [ejbclient-1.0.jar:]

              at org.apache.jsp.test_jsp._jspService(test_jsp.java:57)

              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.17.Final.jar:]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.17.Final.jar:]

              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.17.Final.jar:]

              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.17.Final.jar:]

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.17.Final.jar:]

              at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165) [jboss-as-web-7.1.3.Final.jar:7.1.3.Final]

              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.17.Final.jar:]

              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372) [jbossweb-7.0.17.Final.jar:]

              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.17.Final.jar:]

              at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.17.Final.jar:]

              at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.17.Final.jar:]

              at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_12]

       

       

      Attached is my source code for ref.

       

      Thanks,

      Vinay


        • 2. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
          vinay kumar Newbie

          Yes i ve started the servers as below :

           

          client

          standalone -c standalone-full.xml -Djboss.socket.binding.port-offset=100

           

          server

          standalone -c standalone-full.xml -Djboss.node.name=standalone -b 0.0.0.0

           

          Thanks,

          Vinay

          • 3. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
            jaikiran pai Master

            Please read the link that I provided in my previous reply and search for jboss.node.name in there and follow those instructions.

            • 4. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
              vinay kumar Newbie

              Thanks jai kiran, that is exactly the same code which i ve used.

               

              started the servers as below :

               

              client

              standalone -c standalone-full.xml -Djboss.socket.binding.port-offset=100

               

              server

              standalone -c standalone-full.xml -Djboss.node.name=standalone -b 0.0.0.0

               

               

              The remote call from the client works fine when not going through from the client deployed ejb.

              17:28:19,681 INFO  [stdout] (http-/127.0.0.1:8180-1) Received greeting: Hello Vinay, have a pleasant day!

              17:28:19,694 INFO  [stdout] (http-/127.0.0.1:8180-1) Received greeting: Hello Kumar, get lost!

               

              If i try to invoke the same by invoking the destination ejb through the client ejb i get the below exceptions:

               

              17:28:19,681 INFO  [stdout] (http-/127.0.0.1:8180-1) Received greeting: Hello Vinay, have a pleasant day!

              17:28:19,694 INFO  [stdout] (http-/127.0.0.1:8180-1) Received greeting: Hello Kumar, get lost!

              17:28:19,711 INFO  [stdout] (http-/127.0.0.1:8180-1) inside cli.................

              17:28:19,715 ERROR [org.jboss.as.ejb3.invocation] (http-/127.0.0.1:8180-1) JBAS014134: EJB Invocation failed on component ClientIntBean for method public abstract java.la

              ng.String org.myapp.ejb.ClientInt.cli(java.lang.String) throws java.lang.Exception: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.IllegalStateException: E

              JBCLIENT000025: No EJB receiver available for handling [appName:remoteEJB-1.0, moduleName:ejbbean-1.0, distinctName:] combination for invocation context org.jboss.ejb.cli

              ent.EJBClientInvocationContext@f5b2da

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:164) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:228) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:302) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:188) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) [jboss-as-ejb3-7.1.3.

              Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.

              3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) [jboss-as-ejb3-7.1.3.Final.jar:7.1.

              3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.

              Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:221) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at $Proxy17.cli(Unknown Source) at org.myapp.ejb.EJBApplicationClient.invokeOnBean(EJBApplicationClient.java:37) [ejbclient-1.0.jar:]

                      at org.myapp.ejb.EJBApplicationClient.callme(EJBApplicationClient.java:10) [ejbclient-1.0.jar:]

                      at org.apache.jsp.test_jsp._jspService(test_jsp.java:57)

                      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

                      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

                      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326)

                      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165)

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372)

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679)

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931)

                      at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_12]

              Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:remoteEJB-1.0, moduleName:ejbbean

              -1.0, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@f5b2da

                      at org.myapp.ejb.ClientIntBean.cli(ClientIntBean.java:26) [ejbbeancli-1.0.jar:]

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_12]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_12]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_12]

                      at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_12]

                      at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory

              .java:72) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3

              .Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.3.Final.jar:7.

              1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:226) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      ... 51 more

              Caused by: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:remoteEJB-1.0, moduleName:ejbbean-1.0, distinctName:] combina

              tion for invocation context org.jboss.ejb.client.EJBClientInvocationContext@f5b2da

                      at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:588) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at $Proxy15.greet(Unknown Source)       at org.myapp.ejb.ClientIntBean.cli(ClientIntBean.java:22) [ejbbeancli-1.0.jar:]

                      ... 72 more

               

               

              17:28:20,002 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/ejbweb].[jsp]] (http-/127.0.0.1:8180-1) Servlet.service() for servlet jsp threw ex

              ception: java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:remoteEJB-1.0, moduleName:ejbbean-1.0, distinctName:] combinati

              on for invocation context org.jboss.ejb.client.EJBClientInvocationContext@f5b2da

                      at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:588) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at $Proxy15.greet(Unknown Source)       at org.myapp.ejb.ClientIntBean.cli(ClientIntBean.java:22)

                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_12]

                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_12]

                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_12]

                      at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_12]

                      at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptorFactory

              .java:72) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3

              .Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47)

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.3.Final.jar:7.

              1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:226) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:302) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:188) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.remote.EJBRemoteTransactionPropagatingInterceptor.processInvocation(EJBRemoteTransactionPropagatingInterceptor.java:79) [jboss-as-ejb3-7.1.3.

              Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.

              3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:42) [jboss-as-ejb3-7.1.3.Final.jar:7.1.

              3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:32) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.

              Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                      at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.as.ejb3.remote.LocalEjbReceiver.processInvocation(LocalEjbReceiver.java:221) [jboss-as-ejb3-7.1.3.Final.jar:7.1.3.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:181) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:42) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:125) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:136) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104) [jboss-ejb-client-1.0.11.Final.jar:1.0.11.Final]

                      at $Proxy17.cli(Unknown Source) at org.myapp.ejb.EJBApplicationClient.invokeOnBean(EJBApplicationClient.java:37) [ejbclient-1.0.jar:]

                      at org.myapp.ejb.EJBApplicationClient.callme(EJBApplicationClient.java:10) [ejbclient-1.0.jar:]

                      at org.apache.jsp.test_jsp._jspService(test_jsp.java:57)

                      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) [jbossweb-7.0.17.Final.jar:]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

                      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:326) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253) [jbossweb-7.0.17.Final.jar:]

                      at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.1.Final.jar:1.0.1.Final]

                      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.17.Final.jar:]

                      at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:165) [jboss-as-web-7.1.3.Final.jar:7.1.3.Final]

                      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:372) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:679) [jbossweb-7.0.17.Final.jar:]

                      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:931) [jbossweb-7.0.17.Final.jar:]

                      at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_12]

               

              Thanks,

              Vinay

              • 5. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
                Eduardo Martins Apprentice

                If you are using JNDI to lookup the remote ejb, try adding to the initial context env the property:

                 

                jndiProperties.put("org.jboss.ejb.client.scoped.context", "true");


                • 7. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
                  jaikiran pai Master

                  Please enable TRACE level logs of org.jboss.ejb.client and org.jboss.as.ejb3 on both the servers and attach the output. Also, post the output of your deployment packaging:

                   

                  jar -tf foo.jar

                   

                  (replace foor.jar with the name of your deployments).

                   

                  That would help us understand how the application is packaged. The attachment you attached to the first post requires us to build the project which I haven't tried spending time on.

                  • 8. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
                    vinay kumar Newbie

                    Hi jai kiran,  Please find the attached logs on client and destination servers, i have also attached output of the deployments in deployments.txt

                    • 9. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
                      jaikiran pai Master

                      D:\ejb-jboss\jboss-as-7.1.3.Final-2\standalone\deployments>jar -tf ejbweb-1.0.war

                      META-INF/

                      META-INF/jboss-ejb-client.xml

                      For .war files, the jboss-ejb-client.xml is expected to be in the WEB-INF folder and not META-INF folder.

                      • 10. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
                        vinay kumar Newbie

                        I am getting the same issue even with jboss-ejb-client.xml in WEB-INF folder

                         

                        Also, as i said earlier i am able to call the remote ejbs and i am getting the response with below code

                         

                        final Hashtable props = new Hashtable();

                        props.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

                        // create the InitialContext

                        Context context = new javax.naming.InitialContext(props);

                         

                        // Lookup the Greeter bean using the ejb: namespace syntax which is explained here https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+client+using+JNDI

                        final Greeter bean = (Greeter) context.lookup("ejb:" + "remoteEJB-1.0" + "/" + "ejbbean-1.0" + "/" + "" + "/" + "GreeterBean" + "!" + "org.myapp.ejb.Greeter");

                        // invoke on the bean

                        String greeting = bean.greet("Vinay");

                        System.out.println("Received greeting: " + greeting);

                         

                        final Getlost gbean = (Getlost) context.lookup("ejb:" + "remoteEJB-1.0" + "/" + "ejbbean-1.0" + "/" + "" + "/" + "GetlostBean" + "!" + "org.myapp.ejb.Getlost");

                        greeting = gbean.getlost("Kumar");

                        System.out.println("Received greeting: " + greeting);

                         

                        output at client:

                        Received greeting: Hello Vinay, have a pleasant day!

                        Received greeting: Hello Kumar, get lost!

                         

                        But when i try to call the same remote Greeter bean through my client deployed ClientIntBean it doesnt go through

                         

                        Calling client deployed ejb ClientIntBean:

                         

                        final ClientInt clibean = (ClientInt) context.lookup("ejb:" + "remoteEJBcli-1.0" + "/" + "ejbbeancli-1.0" + "/" + "" + "/" + "ClientIntBean" + "!" + "org.myapp.ejb.ClientInt");

                        context = null;

                        greeting = clibean.cli("Booooooooooooooo");

                        System.out.println("Received greeting: " + greeting);

                         

                        The above code will call the ClientIntBean deployed at client server from here i am trying to call destination Greeter bean with the below code

                         

                        Hashtable props = new Hashtable();

                        props.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");

                        Context context = new javax.naming.InitialContext(props);

                        Greeter bean = (Greeter) context.lookup("ejb:" + "remoteEJB-1.0" + "/" + "ejbbean-1.0" + "/" + "" + "/" + "GreeterBean" + "!" + "org.myapp.ejb.Greeter");

                        String greeting = bean.greet("Booooooooooooooo 2");

                        System.out.println("Received greeting: " + greeting);

                         

                        Here it says No EJB receiver available for handling, please ref my logs.

                         

                        Thanks,

                        Vinay


                         



                         



                        • 11. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
                          jaikiran pai Master

                          vinay kumar wrote:

                           

                          I am getting the same issue even with jboss-ejb-client.xml in WEB-INF folder

                           

                          Please attach the new set of logs and the deployment packaging output after you moved the jboss-ejb-client.xml to the WEB-INF folder. And yes, I do understand what you mean by not able to invoke the EJB. We just need to figure out what part of the application/server configuration is causing this.

                          • 12. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
                            vinay kumar Newbie

                            i ve attached the logs and deployments output after moving  jboss-ejb-client.xml in to WEB-INF folder of war.

                            • 13. Re: ejb to ejb remote call 'No EJB receiver available for handling' on jboss-as-7.1.3.Final
                              jaikiran pai Master

                              So the client EJB exists in a different deployment than the .war? The jboss-ejb-client.xml is expected to be in the top level client deployment. Looking at the deployment packaging you posted:

                               

                              Client Deployments :

                               

                              D:\ejb-jboss\jboss-as-7.1.3.Final-2\standalone\deployments>jar -tf ejbweb-1.0.war

                              META-INF/

                              META-INF/MANIFEST.MF

                              test.jsp

                              WEB-INF/

                              WEB-INF/jboss-ejb-client.xml

                              WEB-INF/jboss-web.xml

                               

                              D:\ejb-jboss\jboss-as-7.1.3.Final-2\standalone\deployments>jar -tf remoteEJBcli-1.0.ear

                              META-INF/

                              META-INF/MANIFEST.MF

                              ejbbeancli-1.0.jar------------

                              META-INF/application.xml     |

                                               |

                                  D:\NewStructureFinalDeployV3\repository\generated>jar -tf ejbbeancli-1.0.jar

                                  META-INF/

                                  META-INF/MANIFEST.MF

                                  org/

                                  org/myapp/

                                  org/myapp/ejb/

                                  org/myapp/ejb/ClientIntBean.class

                              The jboss-ejb-client.xml should be in ejbbeancli-1.0.jar/META-INF folder. and not in the .war (which appears to be an unrelated deployment).

                              1 2 Previous Next