I had tried several suggestions regarding the same problem posted in the forum, none of which is working for me! 1) Provide the interpreter java with j2ee.jar file and other archive files java -cp c:\AppServer\lib\j2ee.jar;AdviceAppClient.jar;. AdviceClient
To do that just add appserv-rt.jar in the Sun\AppServer\lib folder to your classpath.
This jar has jndi.properties file, which specifies the value for java.naming.factory.initial.
If you are using some other server, just find the jndi.properties file and add it to your classpath.., that'll solve ur problem.
Hope this helps...
Joined: Jan 01, 2005
Thanks Ash, ur solution really works!
BTW, I want to tell other persons who may encountered the same problem. If there are more than one jndi.properties files in your classpath, make sure the appserv-rt.jar is put in the first position. Otherwise, other jndi.properties files which might contain "uncorrect" properties will be retrieved instead of the "correct" one.
Before Ash told me, I imported all the jar files from AppServer\lib, and the result is error!!!
[ February 10, 2005: Message edited by: Songxun Lin ]