Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HeadFirst EJB Chapter 1

 
Sunil Chandurkar
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Re:
HeadFirst EJB Chapter 1

Page 57

I can compile the AdviceClient.java class but when I run the class I get:

javax.naming.NoInitialContextException: Need to specify class name....


Please Advise,

Thanks
 
Paul Michael
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure if this is related to your problem. It's been a loong time since I read HF EJB.

But, can you check if there are spaces in the directory where you are running your EJB's?

HTH.
 
Vijitha Kumara
Bartender
Pie
Posts: 3930
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post some code? Probably you haven't initialize your initial context or wrong class name specified.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic