title: EJB: Why do I get this error in JNDI lookup?
body: <pre><code>InitialContext ctx = new InitialContext();
  StatelessInterogareRemote beanStatelessRemote = (StatelessInterogareRemote) ctx
      .lookup("java:global/ShopEAP/ShopEJB/StatelessInterogare!shop.StatelessInterogareRemote");
  StatefulShopCartLocal beanStateful = (StatefulShopCartLocal) ctx
      .lookup("java:global/ShopEAP/ShopEJB/StatefulShopCart!shop.StatefulShopCartLocal");
  </code></pre>
  
  <p>When I run the application, the error appears after the second lookup:</p>
  
  <pre><code>[[[ Error ]]]: Lookup failed for 'java:global/ShopEAP/ShopEJB/StatelessInterogare' in SerialContext 
  INFO: [Ljava.lang.StackTraceElement;@89708c
  WARNING: "IOP00100006: (BAD_PARAM) Class com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate is not Serializable"
  org.omg.CORBA.BAD_PARAM:   vmcid: OMG  minor code: 6 completed: Maybe
      at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:990)
      at com.sun.corba.ee.impl.logging.OMGSystemException.notSerializable(OMGSystemException.java:1005)
      at com.sun.corba.ee.impl.orbutil.ORBUtility.throwNotSerializableForCorba(ORBUtility.java:753)
  ...
  </code></pre>