jQuery in Action, 2nd edition*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "HF: AdviceBean tutorial does not run!" Watch "HF: AdviceBean tutorial does not run!" New topic
Author

HF: AdviceBean tutorial does not run!

Palak Shah
Greenhorn

Joined: Jan 21, 2005
Posts: 18
Hello,

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(NamingManager.java:640)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:280)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at AdviceClient.go(AdviceClient.java:18)
at AdviceClient.main(AdviceClient.java:11)


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)
 
 
subject: HF: AdviceBean tutorial does not run!
 
Similar Threads
SerialContextProvider error
NoInitialContextException :- running AdviceClient
Error running the HF EJB AdviceClient with Weblogic Server
JBOSS - need help with my first ejb deployment and testing
HFE examples