Forums Register Login

java.security.AccessControl Exception

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2695 times.
Similar Threads
applet-servlet communication
using java.awt.robot with Applet
starting rmi
RMI Access Exceptions
Problem RMI and Applet (java.security. AccessControlException)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 08:25:36.