File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes HF: AdviceBean tutorial does not run! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "HF: AdviceBean tutorial does not run!" Watch "HF: AdviceBean tutorial does not run!" New topic

HF: AdviceBean tutorial does not run!

Palak Shah

Joined: Jan 21, 2005
Posts: 18

I followed all the steps given in HFEJB: AdviceBean tutorial. But when I tried to run 'AdviceClient.class' from command line, I get an exception.

Can anybody help?

See the exception attached below:
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(
at javax.naming.InitialContext.getDefaultInitCtx(
at javax.naming.InitialContext.getURLOrDefaultInitCtx(
at javax.naming.InitialContext.lookup(
at AdviceClient.go(
at AdviceClient.main(

Palak Shah,<br />SCJP (85%), SCWCD (84%), SCBCD (95%).
Keerthi P
Ranch Hand

Joined: Aug 19, 2003
Posts: 203
Did you search in this forum? Thats a good way to get the answer quickly.

Cheers.<br />Keerthi<br />(SCJP, SCWCD, SCBCD)
I agree. Here's the link:
subject: HF: AdviceBean tutorial does not run!
It's not a secret anymore!