• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

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: 40913
840
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.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic