Mukesh Parsana

+ Follow
since Apr 12, 2005
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mukesh Parsana

Originally posted by Keerthi P:
Please do a search in this forum. There are tons of postings here on the same topic.

Thank you very much keerthi. Actually I was not able to run program using j2ee 1.3 RI. But on j2ee 1.4, it is running successfully.
Thank you very much for your help.
I am preparaing for SCBCD exam. But because of the following problem, I am not able to move ahead on my preparation path. Please solve my problem as soon as possible. Thanks in advance.

I am using j2ee 1.3 RI. My advice client code is pasted below
public class AdviceClient
public static void main(String args[])
new AdviceClient().go();

public void go()
Hashtable env=new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");
env.put(Context.PROVIDER_URL, "localhost:1050");
Context ic=new InitialContext(env);
Object o=ic.lookup("Advisor");
AdviceHome home=(AdviceHome) PortableRemoteObject.narrow(o, AdviceHome.class);
Advice advisor=home.create();
catch(Exception e)

It is showing the following error.
D:\ejbprojects\advice>java -cp d:\ejbprojects\advice\AdviceAppClient.jar;d:\ejbp
rojects\advice AdviceClient
javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.enterp
rise.naming.SerialInitContextFactory. Root exception is java.lang.ClassNotFound
Exception: com.sun.enterprise.naming.SerialInitContextFactory
at$ Source)
at Method)
at Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sun.naming.internal.VersionHelper12.loadClass(Unknown Source)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at AdviceClient.go(
at AdviceClient.main(