facebook

javax.naming.NameNotFoundException error

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #229453 Reply

    Somnath
    Member

    Hi
    I m Somnath Nawale
    I try to run stateless simple EJB

    it deploye on JBOSS ,

    when the client program run
    it gives following error,
    plz suggest me

    javax.naming.NameNotFoundException: HelloWorldHome not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:505)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:278)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorI
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodA
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:26
    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.ja
    60)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTrans
    .java:701)
    at java.lang.Thread.run(Thread.java:534)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(St
    RemoteCall.java:247)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.j
    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:544)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:520)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at HelloWorldClient.main(HelloWorldClient.java:21)
    Exception: HelloWorldHome not bound

    #229464 Reply

    Riyad Kalla
    Member

    Try going step by step through our EJB tutorial: http://www.myeclipseide.com/images/tutorials/quickstarts/firstejb/

    #267064 Reply

    karuppachamy
    Member

    @support-rkalla wrote:

    Try going step by step through our EJB tutorial: http://www.myeclipseide.com/images/tutorials/quickstarts/firstejb/

    i have tried ur step by step tutorial but i m getting error like ejb not bound
    what i have to do?

    This is the erroe i m getting

    javax.naming.NameNotFoundException: ejb not bound
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
    at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
    at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
    at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
    at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:619)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
    at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
    at sun.rmi.server.UnicastRef.invoke(Unknown Source)
    at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:628)
    at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:590)
    at javax.naming.InitialContext.lookup(Unknown Source)
    at client.main(client.java:37)

    #267065 Reply

    karuppachamy
    Member

    @support-rkalla wrote:

    Try going step by step through our EJB tutorial: http://www.myeclipseide.com/images/tutorials/quickstarts/firstejb/

    i have tried ur step by step tutorial but i m getting error like ejb not bound
    what i have to do?

    #267084 Reply

    Riyad Kalla
    Member

    Did you make sure to run the XDoclet step? I believe not-bound exceptions typically occur when the ejb deployment descriptor is missing.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: javax.naming.NameNotFoundException error

You must be logged in to post in the forum log in