8 Replies Latest reply on Mar 8, 2016 1:04 AM by Ben Han

    java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available with jndi.properties

    Vikas B Newbie

      I am on JBOSS 7.2.0.Final

       

      I am trying to use jndi.properties instead of jboss-ejb-client.properties, but when I try to make a call to the remote method I get following exception :

       

      -----------------------------------------------------------------------------------------------------------------------------

      jndi.properties :

       

      java.naming.factory.initial=org.jboss.naming.remote.client.InitialContextFactory

      java.naming.factory.url.pkgs=org.jboss.ejb.client.naming

      java.naming.provider.url=remote://localhost:4547

      java.naming.security.principal=admin1

      java.naming.security.credentials=sample!23

      --------------------------------------------------------------------------------------------------------------------------

       

       

      "%JBOSS_HOME%\bin\standalone.bat" -b localhost -c standalone.xml -Djboss.server.base.dir="%JBOSS_HOME%\standalone-PS" -DdistinctName=PS -Djboss.node.name=standalone-PS -Dorg.jboss.as.logging.per-deployment=false -Djboss.socket.binding.port-offset=100

       

      May 06, 2013 11:06:09 PM org.jboss.ejb.client.EJBClient <clinit>

      INFO: JBoss EJB Client version 1.0.16.Final

      Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:, moduleName:Sample, distinctName:PS] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@682d19c3

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

          at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116)

          at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:183)

          at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:177)

          at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:161)

          at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:124)

          at com.sun.proxy.$Proxy0.echoPS(Unknown Source)

          at com.abc.client.SampleClient$2.actionPerformed(SampleClient.java:73)