3 Replies Latest reply on Jan 23, 2004 5:09 PM by kbottner

    javax.naming.NameNotFoundException: HelloWorld not bound

    nagulapati Newbie


      "nagulapati" wrote:
      "nagulapati" wrote:
      Hi All,

      I am trying to run a simple Hello World webservice using JBoss 3.2.1 and Axis 1.1 framework. I deployed my bean with "HelloWorld" as the JNDI name, but when I send the request to my webservice to output the string "Hello world" which it is supposed, it is throwing me the following error


      <sayHelloResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <sayHelloReturn xsi:type="xsd:string">
      javax.naming.NameNotFoundException: HelloWorld not bound</sayHelloReturn>

      Can anyone help me in pointing out my mistake? I am pretty sure that my EJB got deployed successfully with the correct JNDI name as "HelloWorld".

      For your reference, here is the code snippet from my SoapBindingImpl class.


      InitialContext jndiContext = new InitialContext();

      java.lang.Object objRef = jndiContext.lookup("java:comp/env/HelloWorld");

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

      HelloWorld homeBean = home.create();

      return homeBean.sayHello();


      What can be the possible reasons for a bean not to be binded under the JNDI name? Do I need to make any modifications in the jndi.properties file?

      Thanks for your help,