• Post Reply Bookmark Topic Watch Topic
  • New Topic

unable to find initial contex  RSS feed

dimple sharma
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using weblogic version 6.1 sp pack 5. I am developing application in swing, which is working fine as Stand alone application. But when i tried it to convert in java web start mode, it is giving me error while getting initialContext !!! Source code snap is under :

properties = new Properties();

properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");


Context ctx = new InitialContext(properties);


java.lang.InternalError: error initializing kernel
at weblogic.kernel.Kernel.ensureInitialized(Kernel.java:104)
at weblogic.jndi.WLInitialContextFactoryDelegate.<init>(WLInitialContextFactoryDelegate.java:166)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:147)
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 iScheduler.client.util.DTSSUtil.getInitialContext(DTSSUtil.java:50)
at iScheduler.client.gui.frame.Main.getAllDepo(Main.java:263)
at iScheduler.client.gui.frame.Main.<init>(Main.java:45)
at iScheduler.client.gui.frame.Main.main(Main.java:222)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

I have included all jars in war file. My application jar name is test.jar, and jnlp file is TEST.jnlp. I have checked cache of java web start, it contains following files :

1. jnlp files


2. jar files


Weblogic.jar hierachy is already included in above jar file.

Can anybody faced same problem ? Where i am wrong ? Plz help me to solve the above problem.

Thanks in advance,

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!