title: Can't lookup an EJB remote via JNDI under JBoss EAP6
body: <p>I am trying to lookup an EJB 3 under Jboss EAP6.
  I have a maven EJB project witch named <strong>service-All</strong> where i have tow packages (<strong>interface</strong> and <strong>Impl</strong>) and i have a other java project witch named <strong>ClientEJB</strong>.
  This is an example of an interface and it's implementation:</p>
  
  <pre><code>@Remote
  public IClient{
  void showClient(String name);
  }
  </code></pre>
  
  <p>The Implementation:</p>
  
  <pre><code>@Statless
  @Remote(IClient.Class)
  public ClientImpl(){
  public void showClient(String name){
  System.out.println("I'am Mr or Mme"+name);
  }
  </code></pre>
  
  <p>About the java prject, this is the main class:</p>
  
  <pre><code>public MyClass{
  
    private IClient client;
  
    public static void main(String args[]){
      InvockClient().showClient("ClientTest");
    }
  
    public static IClient InvockClient(){
      final Hashtable jndiProperties = new Hashtable();
        jndiProperties.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
        jndiProperties.put("jboss.naming.client.ejb.context", true);
        Context context;
        IClient client= null;
        try {
            context = new InitialContext(jndiProperties);
        client=(IUpdateCleRepartition) context.lookup("ejb:service-All/service-All /"+Client.class.getSimpleName()+"!" + IClient.class.getName());
            context.close();
        } catch (NamingException e) {
            System.out.println(e.getMessage());
        }
        return client;
    }
  }
  </code></pre>
  
  <p>This is jboss-ejb-client.properties the witch i have it in the src\main\resources</p>
  
  <pre><code># JBoss, Home of Professional Open Source
  # Copyright 2012, Red Hat, Inc. and/or its affiliates, and individual
  # contributors by the @authors tag. See the copyright.txt in the 
  # distribution for a full listing of individual contributors.
  # Licensed under the Apache License, Version 2.0 (the "License");
  # you may not use this file except in compliance with the License.
  # You may obtain a copy of the License at
  # http://www.apache.org/licenses/LICENSE-2.0
  # Unless required by applicable law or agreed to in writing, software
  # distributed under the License is distributed on an "AS IS" BASIS,
  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  # See the License for the specific language governing permissions and
  # limitations under the License.
  remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
  remote.connections=default
  remote.connection.default.host=localhost
  remote.connection.default.port = 4447
  remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
  </code></pre>
  
  <p>The service-All.jar is deployed on jboss EAP6  and when i run the main method it gives me this:</p>
  
  <pre><code>log4j:WARN No appenders could be found for logger (org.jboss.logging).
  log4j:WARN Please initialize the log4j system properly.
  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  java.lang.IllegalStateException: EJBCLIENT000025: No EJB receiver available for handling [appName:serviceAll, moduleName:serviceAll, distinctName:] combination for invocation context org.jboss.ejb.client.EJBClientInvocationContext@1629bc56
  at org.jboss.ejb.client.EJBClientContext.requireEJBReceiver(EJBClientContext.java:749)
  at org.jboss.ejb.client.ReceiverInterceptor.handleInvocation(ReceiverInterceptor.java:116)
  at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:186)
  at org.jboss.ejb.client.EJBInvocationHandler.sendRequestWithPossibleRetries(EJBInvocationHandler.java:253)
  at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:198)
  at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:181)
  at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:144)
  at com.sun.proxy.$Proxy0.ShowClient(Unknown Source)
  at org.kaml.MyClass.showClient(MyClass.java:12)
  at eu.spb.batch.lceb.Launcher.main(MyClass.java:10)
  </code></pre>
  
  <p>Any Idea to solve that!</p>