title: NameNotFoundException when calling a EJB in Weblogic 10.3
body: <p>I have a EJB defined as this:</p>
  
  <pre><code>package com.foo;
  @Stateless (mappedName="HelloWorld")
  public class HelloWorldBean implements HelloWorld, HelloWorldLocal
  ....
  </code></pre>
  
  <p>When it's deployed to Weblogic (WL), it gets the name myBean.  I'm not sure if this is important.</p>
  
  <p>I try to call the bean with this code:</p>
  
  <pre><code>Hashtable ht = new Hashtable();
  ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
  ht.put(Context.PROVIDER_URL, "t3://localhost:7001");
  ic = new InitialContext(ht);
  tp = (HelloWorld) ic.lookup("HelloWorld#com.foo.HelloWorldBean");
  </code></pre>
  
  <p>Anyone know why I get the following error?</p>
  
  <pre><code>javax.naming.NameNotFoundException: While trying to lookup 'HelloWorld#com.foo.HelloWorldBean' didn't find subcontext 'HelloWorld#com'.
   Resolved '' [Root exception is javax.naming.NameNotFoundException: While trying
   to lookup 'HelloWorld#com.foo.HelloWorldBean' didn't find
   subcontext 'HelloWorld#com'. Resolved '']; remaining name 'HelloWorld#com/foo/HelloWorldBean'
  </code></pre>