0 Replies Latest reply: Sep 12, 2011 6:12 AM by H Kumar RSS

javax.naming.NameNotFoundException: EntityTestBean not bound

H Kumar Newbie

I am getting the following error while trying to execute the cachedentity example from the EJB3 Tutorials. I have tried various ways - I included a sleep task in ant with a duration of 60 seconds....  While executing from the command prompt I ran ejbjrar and run separately, it does not seem to work. 

 

     [java] Exception in thread "main" javax.naming.NameNotFoundException: Entit

yTestBean not bound

     [java]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)

 

 

     [java]     at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)

 

 

     [java]     at org.jnp.server.NamingServer.getObject(NamingServer.java:785)

     [java]     at org.jnp.server.NamingServer.lookup(NamingServer.java:396)

     [java]     at sun.reflect.GeneratedMethodAccessor281.invoke(Unknown Source)

 

 

     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet

hodAccessorImpl.java:25)

     [java]     at java.lang.reflect.Method.invoke(Method.java:597)

     [java]     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav

a:305)

     [java]     at sun.rmi.transport.Transport$1.run(Transport.java:159)

     [java]     at java.security.AccessController.doPrivileged(Native Method)

     [java]     at sun.rmi.transport.Transport.serviceCall(Transport.java:155)

     [java]     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor

t.java:535)

     [java]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCP

Transport.java:790)

     [java]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT

ransport.java:649)

     [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Thread

PoolExecutor.java:886)

     [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPool

Executor.java:908)

     [java]     at java.lang.Thread.run(Thread.java:662)

     [java]     at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServe

r(StreamRemoteCall.java:255)

     [java]     at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa

ll.java:233)

     [java]     at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)

     [java]     at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)

     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:72

8)

     [java]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:68

8)

     [java]     at javax.naming.InitialContext.lookup(InitialContext.java:392)

     [java]     at org.jboss.tutorial.cachedentity.client.CachedEntityRun.main(C

achedEntityRun.java:61)

     [java] Java Result: 1

 

Can somebody help me resolve this issue?

 

Thanks in advance.