1 Reply Latest reply on Feb 20, 2004 9:03 AM by milowe

    Access denied when applet tries to open socket connection to

    ngais

      The following had been inappropriately posted somewhere under JBoss Development b4. Hope this is a better home for it:

      Hello,

      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.