1 Reply Latest reply on Jul 6, 2004 5:32 AM by Darran Lofthouse

    jndi look up problem

    s_k_tripathi Newbie

      hi
      my operating system is windows XP
      please help me when i run the client the following errors comes--


      D:\SKTEJB>java -classpath c:\jboss\client;d:\sktejb;c:\jboss\server\default\lib;
      d:\sktejb;c:\jboss\client\jboss-common-client.jar;c:\jboss\client\jnp-client.jar
      ;c:\jboss\client\log4j.jar hello.HelloClient
      javax.naming.NameNotFoundException: HelloHome not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
      at sun.rmi.transport.Transport$1.run(Transport.java:148)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:4
      60)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport
      .java:701)
      at java.lang.Thread.run(Thread.java:536)
      at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Stream
      RemoteCall.java:247)
      at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:
      223)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
      at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at hello.HelloClient.main(HelloClient.java:21)

      my ejb-jar.xml file is as follows--

      <?xml version="1.0"?>
      <!DOCTYPE ejb-jar PUBLIC
      "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
      "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

      <ejb-jar>
      <enterprise-beans>

      <ejb-name>TestEjb</ejb-name>
      hello.HelloHome
      hello.HelloBean
      <ejb-class>hello.HelloEjb</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>

      </enterprise-beans>
      </ejb-jar>

      my jboss.xml is as

      <?xml version='1.0' ?>

      <enterprise-beans>

      <ejb-name>TestEjb</ejb-name>
      <jndi-name>HelloHome</jndi-name>

      </enterprise-beans>