Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Problem while Running First Example Of HFEJB.

 
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am running very First application of Head First EJB.
But while running AdviceClient i am getting following exception


My client code is

Command which i am using to run client is
C:\projects\advice>java -cp ;c/projects/advice/AdviceAppClient.jar AdviceClient
I am not able to understand why
Please Help.
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think many problems from chapter 1 in the HFEJB is identical, So the author or someone that is domain_expert in this forum should posts the standard solution, which should be step by step, in this forum.

This problem is similar to me. I solve it by;
1. Check for JNDI naming when you deploy to the j2eeRI server, that you refer in the 'ic.lookUp("Advisor");. the JNDI naming and the String argument for ic.lookUp() must be the same.
2. Check for your status of j2eeRI server; is it running properly?, is it starting?(The server must start in the another command window)

I'm not sure this reply help you but I do my best. I'm a also infanty state to ejb.

Cheers
Tanakorn
 
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
gowher, use this link. It will help you.
 
The harder you work, the luckier you get. This tiny ad brings luck - just not good luck or bad luck.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic