Hi All,
I have written a EJBClient Program. My Weblogic Server is running on WL Version 5 and I compiled this client program using the jar files of weblogic 6. The program compiled but when I try to run then while getting InitialContext it throws Exception...
My client program look likes this...
public static void main(
String args[])
{
try
{
final Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"weblogic.jndi.WLInitialContextFactory");
env.put(Context.PROVIDER_URL, "t3://localhost:7001");
environment = new InitialContext (env);
}
catch(Exception e)
{ }
}
Exception is ......
java.lang.NullPointerException
at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:191)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246
at javax.naming.InitialContext.init(InitialContext.java:222)
at javax.naming.InitialContext.<init>(InitialContext.java:198)
at EJBClient.main(EJBClient.java:29)
Can any body help me out.
Can I do it this way ???
Regards
Raj