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.
Bean a while since I worked with applets but I am pretty sure that a
standard applet is not allowed to make a socket connection.
You could edit the system properties to allow this or you could sign
the applet.