title: InvalidObjectException when looking up EJB3 on WAS7
body: <p>I have a java web application that is deployed in two EARs - one for the UI tier (contains a <code>WAR module</code>) and one for the business tier (contains an <code>EJB module</code>). Both tiers are deployed to WebSphere Application Server 7. The tiers are connected via EJB 3.0 stateless session beans. The beans are looked up via JNDI.</p>
  
  <p>The two applications are currently on the same WAS server, but in the future will be deployed onto different servers. When I attempt to lookup an EJB, I get an error.</p>
  
  <p>Attempting to debug the lookup error, I ran a JNDI namespace dump on the WAS server:</p>
  
  <pre><code>./dumpNameSpace.bat -host localhost -port 10031 &gt; namespace.log
  </code></pre>
  
  <p>Each of my EJBs was listed with the following error:</p>
  
  <pre><code>(top)/nodes/U4752879Node01/servers/server1/ejb/au/gov/immi/emed/ejb/CrtEJB
                                                 au.gov.immi.emed.ejb.CrtEJB
  ERROR: Received the following naming exception: com.ibm.ws.naming.util.InvalidObjectException: The IOR associated with the binding "CrtEJB" relative to the context "U4752879Node01Cell/nodes/U4752879Node01/servers/server1/ejb/au/gov/immi/emed/ejb" could not be resolved.  If the binding is for an application object, make sure the application has started successfully. IOR: IOR:&lt;removed&gt;
  </code></pre>
  
  <p>Here is the EJB remote interface:</p>
  
  <pre><code>@Remote
  public interface CrtEJB extends EMedEJB, EMedCrtService
  {
  }
  </code></pre>
  
  <p>And the bean implementation:</p>
  
  <pre><code>@Stateless(name = "CrtEJB")
  @Remote(value = CrtEJB.class)
  public class CrtEJBBean extends AbstractEMedEJBBean implements CrtEJB
  {
  
      ...
  }
  </code></pre>
  
  <p>And the ibm-ejb-jar-bnd.xml file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ejb-jar-bnd xmlns="http://websphere.ibm.com/xml/ns/javaee"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-ejb-jar-bnd_1_0.xsd"&gt;
      &lt;session name="CrtEJB" simple-binding-name="ejb/au/gov/immi/emed/ejb/CrtEJB" /&gt;
          ...
  &lt;/ejb-jar-bnd&gt;   
  </code></pre>
  
  <p>What is causing the error to occur? The error is the same without the <code>ibm-ejb-jar-bnd.xml</code> file, which I shound't need. Is this error what's causing the UI lookup to fail, or should that be working anyway? (in which case I'll post the UI error).</p>