This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

applet servlet communication

 
pradeep phatak
Greenhorn
Posts: 1
  • 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: 13055
6
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic