1 2 Previous Next 23 Replies Latest reply on May 16, 2006 4:29 AM by Bjørn Børresen

    javax.naming.NameNotFoundException: HelloWorld not bound

    rupasrivi Newbie

      Thanks, for ur precious help.
      -Djava.rmi.server.hostname= worked.

      Now when i test the client it gives foll message:
      javax.naming.NameNotFoundException: HelloWorld not bound

      my ejb-jar.xml in the Meta-inf dir is:


      And the jboss.xml is as follows:



      The jboss.xml file is also in the meta-inf dir along with ejb-jar.xml .
      The helloworld.jar is successfully deployed on the jboss server.

      Also the client code for the HelloWorldClient is:
      public static void main(String[] args)
      Properties p = new Properties();
      Context jndiContext = new InitialContext(p);
      System.out.println("Got context");

      Object ref = jndiContext.lookup("java:HelloWorld") ;
      System.out.println(" got reference");

      HelloWorldHome home = (HelloWorldHome)
      PortableRemoteObject.narrow(ref, HelloWorldHome.class);

      HelloWorld helloworld = home.create();

      catch(Exception e)

      Please help i have been trying to run this client since days on jboss.
      At the final stage i am getting these exceptions.
      Its very important for me to run this client successfully on jboss.
      plz reply soon
      Thanks in advance

        1 2 Previous Next