This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Problem while Running First Example Of HFEJB. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Problem while Running First Example Of HFEJB." Watch "Problem while Running First Example Of HFEJB." New topic
Author

Problem while Running First Example Of HFEJB.

Gowher Naik
Ranch Hand

Joined: Feb 07, 2005
Posts: 643
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.
Tanakorn Numrubporn
Ranch Hand

Joined: Dec 11, 2006
Posts: 81
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
Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
gowher, use this link. It will help you.


SCJP 5.0<br />SCWCD 1.4<br />Preparing for <b>SCEA</b>.<br /><b>"I prefer an interesting vice to a virtue that bores."</b>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem while Running First Example Of HFEJB.
 
Similar Threads
problem with creating client in J2ee
Client does not run
Client does not run - NoInitialContextException !
ClassCastException in client
how to run the AdviceClient