aspose file tools*
The moose likes Servlets and the fly likes applet servlet communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "applet servlet communication" Watch "applet servlet communication" New topic
Author

applet servlet communication

pradeep phatak
Greenhorn

Joined: Jun 03, 2003
Posts: 1
I am trying to communicate with a servlet using an
applet. Independently both are working fine.
I am getting a security exception when I try to communicate the two. servlet is running on
tomcat 4.0
The message I get is as follows:
Exception occurred during event dispatching:
java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.2.239:8080 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:267)
at java.security.AccessController.checkPermission(AccessController.java:394) at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
at Exception occurred during event dispatching:
java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.2.239:8080 connect,resolve)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:267)
at java.security.AccessController.checkPermission(AccessController.java:394) at java.lang.SecurityManager.checkPermission(SecurityManager.java:540)
at java.lang.SecurityManager.checkConnect(SecurityManager.java:1039)
java.lang.SecurityManager.checkConnect(SecurityManager.java:1039)
any changes to do in catalina.policy?
suggest!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
Sounds like you are trying to have your applet talk to a server that is not the address the applet was loaded from. Way back in Java 1.0 you could do that but now the SecurityManager won't let you unless you have a signed applet.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: applet servlet communication