This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NameNotFoundException  RSS feed

 
Ravissant Markandey
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
Im an ejb3.0 newbie and am trying to run my first bean, however i keep getting a NameNotFound exception everytime i run the client code, I'm using Jboss and have added all jar files required for the application to run.
One thing that seemed odd when i deployed the bean was that no reference was made to JNDI name by exception at the server end which is usually made as soon as the bean is deployed, could someone please tell me where im going wrong.

Thanks in advance,
Ravissant Markenday
 
Ravissant Markandey
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again,

The following is the code in my client program:




and this is the error i get:



What i could tell from my limited knowledge of ejb is that the error has something to do with the JNDI name, please help, tahnsk again
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36406
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ravissant,
Is "com.infotech.business.MyBusinessInterface" what you named the bean when registering it in JNDI? It's possible, but convention uses slashes rather than dots.

You can tell what JNDI name is used by looking at the @EJB annotation or in your ejb-jar.xml if you overwrote it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!