• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

NameNotFoundException

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41905
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic