Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.naming.NameNotFoundException: TravelAgentBean not bound  RSS feed

 
Pepa Cefalu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to deploy my FirstBeans from Enterprise JavaBeans 3.0. I am using Jboss, remote debugging with Eclipse and ant. when I issue the command ant run.client, I get the error bellow and cannot find any way to solve it by means of the above listed book. Could you please help?

My project has been created in, the bin directory in my directory structure (C:\Users\Pepa\Downloads\JEE Class\FirstBeans\build) contains FirstBeansTitan.jar. I have also imported C:\Users\Pepa\Downloads\JEE Class\FirstBeans\build\FirstBeansTitan.jar into "FirstBeanTitan" referenced libraries by Java Build Path of the propject properties. Additionally, I have place FirstBeansTitan.jar into C:\jboss-6.1.0.Final\server\default\deploy\applications and MySQL-ds.xml into C:\jboss-6.1.0.Final\server\default\deploy. The jndi database name is MySqlTitanDS

Thanks

Pepa

javax.naming.NameNotFoundException: TravelAgentBean not bound.

run.client:
[java] javax.naming.NameNotFoundException: TravelAgentBean 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.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[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:303)
[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 titan.clients.Client.main(Client.java:17)

BUILD SUCCESSFUL
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!