NameNotFoundException
vadirajgp Sep 1, 2005 3:44 AMI am trying to run the examples provided in C:\jboss-EJB_3.0_RC1\jboss-EJB-3.0_RC1\docs\tutorial.
First I ran ant and then ant run
I am getting the following exception.
I set the JBOSS_HOME
C:\jboss-EJB_3.0_RC1\jboss-EJB-3.0_RC1\docs\tutorial\stateless>ant run
Buildfile: build.xml
prepare:
compile:
ejbjar:
run:
[java] Exception in thread "main" javax.naming.NameNotFoundException: org.jboss.tutorial.stateless.bean.CalculatorRemote not bound
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java :495)
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
[java] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
[java] at org.jnp.server.NamingServer.lookup (NamingServer.java:282)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java :294)
[java] at sun.rmi.transport.Transport$1.run(Transport.java:153)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at sun.rmi.transport.Transport.serviceCall (Transport.java:149)
[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:595)
[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:126)
[java] at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
[java] at org.jnp.interfaces.NamingContext.lookup (NamingContext.java:529)
[java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:508)
[java] at javax.naming.InitialContext.lookup(InitialContext.java:351)
[java] at org.jboss.tutorial.stateless.client.Client.main (Client.java:19)
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 2 seconds
How to overcome this exception. Please help.
Regards,
vaDzz