1 Reply Latest reply on Nov 1, 2001 9:00 PM by Andreas Schaefer

    Name interest is not bound in this Context

    cidy long Newbie

      Hi, Guys

      I got a problem with ejb lookup. I deployed ejb on jboss 2.4.3, then I try to use client application to lookup the ejb, it is fine.

      but when I try to deploy the servlet in seperate tomcat 4.0.1(not embeded tomcat but sperate installation). I put all necessary classes in tomcat and no any compile error, when I invoked ejb look up. I got some exception as:
      javax.naming.NameNotFoundException: Name interest is not bound in this Context

      the lookup code like:
      ref = (Object)jndiContext.lookup("java:/comp/env/interest/Interest");

      or

      ref = (Object)jndiContext.lookup("interest/Interest");

      I got same exceptions

      I check with http://localhost:8082 and see the ejb is exactly here, but I can't lookup it by name.

      So anybody can help me to fix this problem. Please give me feedback on cidyl@cheerful.com

      Cidy