This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Applets and the fly likes java.security.AccessControl Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "java.security.AccessControl Exception" Watch "java.security.AccessControl Exception" New topic
Author

java.security.AccessControl Exception

malvika Pandit
Greenhorn

Joined: Nov 17, 2008
Posts: 2
Hi all,

I am writing an applet that communicates with a servlet.
My program works fine when I run on local host. However when I run on remote machine by giving its IP address in applet.It gives following error

java.security.AccessControl Exception access denied(java.net.socket permission 192.168.1.39 conect,resolve)
here 192.168.1.39 is the IP address of remote client on LAN.
I changed the java.policy file socketpermission to all listen,connect,accept,resolve. But the problem remains same.
Whats the solution for this?
I use tomcat server(8080 port)
Please help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41597
    
  55
Where did you change the policy file - on the machine where the applet fails to run? Make sure there aren't several JREs installed on that machine; this happens frequently, and the applet may be run with a different JRE than the one you changed the security policy for.


Ping & DNS - my free Android networking tools app
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: java.security.AccessControl Exception