javax.naming.NameNotFound exception
sebbelcher Apr 22, 2006 8:41 AMHi guys,
Need a bit of help, I'm try to adapt one of the O'Reilly tutorials to get a better understanding of how things work but it was just confused me further.
My bean compliles and gets deployed into the /deploy directory but never appears on the JMX console. This means when I try to run the client i get:
[java] javax.naming.NameNotFoundException: gingerStudentHomeRemote not bound [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:514) [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:522) [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:528) [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:281) [java] at sun.reflect.GeneratedMethodAccessor121.invoke(Unknown Source) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261) [java] at sun.rmi.transport.Transport$1.run(Transport.java:148) [java] at java.security.AccessController.doPrivileged(Native Method) [java] at sun.rmi.transport.Transport.serviceCall(Transport.java:144) [java] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460) [java] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701) [java] at java.lang.Thread.run(Thread.java:534) [java] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247) [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133) [java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610) [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572) [java] at javax.naming.InitialContext.lookup(InitialContext.java:347) [java] at com.gingerUniversity.clients.Client_61.main(Client_61.java:32)
Why would this be happening?
Cheers,
Seb