This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

unable to find initial contex

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

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");

properties.put(Context.PROVIDER_URL,"t3://192.168.0.108:7001");


Context ctx = new InitialContext(properties);


[errorMessage]


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

ALTEST.jnlp
AMDTEST.jnlp
ATDTEST.jnlp

2. jar files

RCtest.jar
RMtest.jar
RTtest.jar

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,

Dimple
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic