4 Replies Latest reply on Aug 5, 2002 6:36 AM by Peter Todd

    Can't create the EJB client "java not bound".

    Peter Todd Newbie

      Any help on the following appreciated:

      I've successfully deploied on JBoss3.0 an EJB automatically generated by another system.

      In the client I can get the Context and Reference for this EJB but when I try and create
      the object on the client I get a "java not bound" error:

      InitialContext jndiContext = new InitialContext();
      System.out.println("Got EJB context");;
      Object ref = jndiContext.lookup("lawson/live_CU03_1");
      System.out.println("Got EJB reference");
      CU03_1 cu03_1 = cu03_1Home.create([username], [password]);


      [java] Got EJB context
      [java] Got EJB reference
      [java] java.rmi.ServerException: RemoteException occurred in server thread;
      nested exception is :
      [java] java.rmi.ServerException: Nested Exception:javax.naming.NameNotFoundException: java not bound

      I'm new to JBoss any help on this appreciated. Have previously deploied same EJB to weblogic but would
      like to try JBoss.


      Peter Todd