2 Replies Latest reply on May 10, 2012 7:56 AM by Christian Kölle

    Problem with remote ejb calls between two standalone JBoss instances on the same machine

    Christian Kölle Newbie

      Hi

       

      I have a problem with remote ejb calls between two standalone JBoss instances on the same machine. The JBoss instances are set up as described in https://community.jboss.org/wiki/MultipleInstancesOfJBossAS7OnTheSameMachine where i used approach #2 with the port offset. After that i deployed an ear in instance1 which provides several ejbs. In instance2 i deployed a war which acts as an ejb client. For the set up of the ejb client i used this description: https://docs.jboss.org/author/display/AS71/EJB+invocations+from+a+remote+server+instance.

       

      Unfortunately in this setup i get the following error:

       

      12:59:17,719 ERROR [ch.nic.reg.Kernel] (http-0.0.0.0-0.0.0.0-18080-1) Can not initialize Kernel!: java.lang.IllegalStateException: No EJB receiver available for handling [appName:reg-core,modulename:common-ejb,distinctname:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@14bf765

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

       

      After that i tried to deploy the client war in a JBoss on a different machine and tried to connect to the first machine. This works fine. During the boot process i get the following message:

       

      13:01:48,865 INFO  [org.jboss.ejb.client.remoting.RemotingConnectionEJBReceiver] (MSC service thread 1-4) Successful version handshake completed for receiver context EJBReceiverContext{clientContext=org.jboss.ejb.client.EJBClientContext@6d5dfec5, receiver=Remoting connection EJB receiver [connection=Remoting connection <1674af6e>,channel=jboss.ejb,nodename=...]} on channel Channel ID b85a7c75 (outbound) of Remoting connection 6d64c238 to ...

       

      which indicates to me that the server as successfully opened the remote connection. This log message is not present in the case when the JBoss is on the same machine.

       

      Are there any additional configuration steps to get this working with two JBoss instances on the same machine?

       

      Thanks in advance

      Christian