0 Replies Latest reply on Feb 17, 2004 3:16 PM by ngais

    Access denied when applet attempts to open socket connection

    ngais Newbie


      I am working on a web application that allows an applet to establish TCP connection to the server side. The webapp works fine with Tomcat. However, when I deployed it on JBoss 3.2.3 (with Tomcat 4 embedded), I got the following exception in the Java Console of the browser (IE):

      java.security.AccessControlException: access denied (java.net.SocketPermission cicero2g resolve)

      at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)

      at java.security.AccessController.checkPermission(AccessController.java:401)

      at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)

      at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042)

      at java.net.InetAddress.getAllByName0(InetAddress.java:937)

      at java.net.InetAddress.getAllByName0(InetAddress.java:918)

      at java.net.InetAddress.getAllByName(InetAddress.java:912)

      at java.net.InetAddress.getByName(InetAddress.java:832)

      at java.net.InetSocketAddress.(InetSocketAddress.java:109)

      at java.net.Socket.(Socket.java:119)


      BTW. At this point, I am just using a normal ServerSocket (NOT SSL yet) and running both the applet and the webapp locally on the same box.

      Thx in advance for any help.