JNDI error as connecting to WL 8.1 JMS server in an applet


EJB programming & troubleshooting: JNDI error as connecting to WL 8.1 JMS server in an applet

  1. Hi all

    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 !
  2. 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:

  3. 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).
  4. 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.