0 Replies Latest reply on Dec 23, 2002 3:02 PM by richcoad

    NamingException

    richcoad

      I'm trying to get a basic servlet to EJB test working and keep running into issues with JNDI.

      As the EAR file is deployed I see the following message:

      12:03:39,852 DEBUG [JettyService] Linking ejb-ref: Role to JNDI name: java:comp/env/Role

      In my servlet I added a call to get the list and it includes the following entry:

      12:04:04,871 INFO [STDOUT] Role: javax.naming.LinkRef

      However, when I try to get the bean using

      home = (RoleHome) PortableRemoteObject.narrow(ctx.lookup("Role"), RoleHome.class);

      I get a Namib=ngException that Role is not bound;

      if I use "java:/comp/env/Role" in the lookup I get a bus exception and JBoss restarts!

      I'm running JBoss 3.0.3 on Mac OSX. Should I upgrade or switch to Linux or am I doing something wrong here?