File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet servlet communication

 
pradeep phatak
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic