Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to get the context Lookup..Help  RSS feed

sunilkumar ssuparasmul
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I amtrying to do a context lookup of weblogic using applets .
I am getting teh following error in Netscape ..please help
Init called
initJMS() started
at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
at javax.naming.spi.NamingManager.getInitialContext(Compiled Code)
at javax.naming.InitialContext.getDefaultInitCtx(Compiled Code)
at javax.naming.InitialContext.init(Compiled Code)
* at javax.naming.InitialContext.<init>(Compiled Code)
at Applet1.initJMS(Compiled Code)
at Applet1.init(Compiled Code)
at netscape.applet.DerivedAppletFrame$InitAppletEvent.dispatch(Compiled Code)
at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code)
at Code)
at netscape.applet.DerivedAppletFrame$ Code)
Initialization failed

This is teh source i ahve used to do a look up
System.out.println("initJMS() started");
String hostName = "inatp2rml21s";
Hashtable env = new Hashtable();
"t3://" + hostName + ":7011");
jmsContext = new InitialContext(env);
System.out.println("Context initialized");
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your Applet and JMS provider being served by the same machine? You may need to sign your applet.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!