hi,
I am studying
EJB using Head First by Kathy & Bert. It is fundoo book. It nicely goes to the deeper level of eachdeployment process. BUT, I donot understand why the authors have not mentioned about passing the parameters while creating InitialContext Object in FIRST chapter of the book.
I followed all the steps as per the book, but on running the AdviceClient I am getting error as
D:\Projects\advice>java -cp .;AdviceAppClient.jar AdviceClient
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
ile: java.naming.factory.initial
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)
at AdviceClient.go(AdviceClient.java:33)
at AdviceClient.main(AdviceClient.java:26)
Can authors please guide me in this ?
Thanks a Lot in Advance
Sachin