Following HFEJB example app step by step, and getting a NoInitialContextException?
posted 10 years ago
This is the exception which i get, but i don't understand why. I have reffered to the errata and corrected the small issue concerning the name of the business method.
javax.naming.NoInitialContextException: Need to specify class name in environmen
t or system property, or as an applet parameter, or in an application resource f
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.lookup(Unknown Source)