I am trying the example from HFEJB (AdviceBean). I've deployed it successfully on Sun Application Server, but when I was trying to run the AdviceClient, I got the exceptions as 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(Unknown Source) at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source) at javax.naming.InitialContext.lookup(Unknown Source) at HFEJB.ch1.AdviceClient.go(AdviceClient.java:28) at HFEJB.ch1.AdviceClient.main(AdviceClient.java:19) ______________________________________________________________________
Can anyone tell me what's the problem?
Thx in advance.
Practice make perfect.<br /> <br />SC-(JP/WCD/BCD/EA)