EJB programming & troubleshooting: JNDI error as connecting to WL 8.1 JMS server in an applet
- Posted by: dso dso
- Posted on: January 20 2004 20:50 EST
i tried to follow below technical article to enable my applet to subscribe to a JMS topic setup on the WL server 8.1 http://dev2dev.bea.com/products/wlserver81/whitepapers/WLS_81_jms_applets.jsp
However, my applet always threw below error msg as initialize the JNDI context.
[ JNDI NamingException: javax.naming.NamingException: Couldn't connect to any host [Root exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No]
I had used "localhost:7001" as the JNDI "PROVIDER_URL" which is also the url from which the applet was downloaded.
Also, HTTP tunneling was enabled at WL8.1 Server.
As i modified my applet to run as a standalone java swing client program with same code subscribing to JMS server. No error occurred. I am confused what's wrong with my applet. If my applet is signed, will it be the cause of error ?
Highly appreciated somebody can help me out of above trouble.
thank u a lot in advance !
- JNDI error as connecting to WL 8.1 JMS server in an applet by Paul Strack on January 21 2004 13:37 EST
- JNDI error as connecting to WL 8.1 JMS server in an applet by Paul Strack on January 21 2004 13:39 EST
- JNDI error as connecting to WL 8.1 JMS server in an applet by dso dso on January 25 2004 22:33 EST
It is the same host, but a different port. Maybe that is what is causing your problem. Try using a signed applet with more advanced networking permissions:
Another idea: test the applet in the AppletViewer, which does not have the same security constraints as a web browser. This will tell you if your problem is really security related, or is some else (like a problem loading configuration data).
In fact, i used same port to access the applet. Hence, the applet used the same host and port as the url i key in at browser.