Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

A naive JNDI question...  RSS feed

 
Barry Burd
Author
Ranch Hand
Posts: 133
10
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Trying to run the template from the JBoss 3 tutorial examples (on JBoss 4.0), I get the following error:
javax.naming.NameNotFoundException: test not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:490)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:498)
at org.jnp.server.NamingServer.getObject(NamingServer.java:504)
at org.jnp.server.NamingServer.lookup(NamingServer.java:248)
at org.jnp.server.NamingServer.lookup(NamingServer.java:251)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
... (and there's more)
If I look at my jboss-web.xml file, I see only the following jndi reference:
<ejb-ref>
<ejb-ref-name>ejb/webtest/TestSession</ejb-ref-name>
<jndi-name>ejb/test/TestSession</jndi-name>
</ejb-ref>
So my question is, where to I look to find out what I should add (and where I should add it) to get this exception to go away?
Thanks.
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gonna move this to the JBoss forum
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!