1 Reply Latest reply on Apr 23, 2003 1:42 AM by kvikram

    why can not find entity!

    rex0y Newbie

      i use

      At first, i write a session bean, call it no problem.
      and then i use JB create a entity bean and a session bean, session bean call entity.
      when i use servlet to test the ejb, but get this message:

      10:49:38,703 INFO [STDOUT] ::javax.ejb.ObjectNotFoundException: No such entity!

      i make sure there is no compile errors and deploy error.
      in jboss.xml:



      in test progam:
      Object ref = ctx.lookup("Userses");
      Context ctx = getJBossInitialContext();
      //look up jndi name
      Object ref = ctx.lookup("Reguser");

      session can find but entity not
      anybody can help me!?

        • 1. Re: why can not find entity!
          kvikram Newbie

          I would suggest the foll
          1)Make sure U have a remote & a local interface
          2)Change to the foll


          Then call it from the servlet
          Context jndiContext = new InitialContext();
          Object ref = jndiContext.lookup("Reguser");
          Object ref = jndiContext.lookup("ReguserLocal");

          This should work

          Good luck