• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

java.security.AccessControl Exception

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Warning! Way too comfortable! Do not sit! Try reading this tiny ad instead:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic