dcsimg
AccessControlException: access denied
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Monday, February 11, 2002 05:46 AM

I am using an applet, that connects to a servlet. Both (should) run in VA 4.0. When I start the applet, I get the message:



java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:8080 connect,resolve)



So I was looking in the java.policy-file in directory VisualAge for Javaideprogramlibsecurity, but this gives me full access:



permission java.security.AllPermission;



What's wrong ?


Help is very welcome


Boerries

Re: AccessControlException: access denied

Posted By:   bharani_iyer  
Posted On:   Monday, February 11, 2002 06:13 AM


Hi,

Include this line in your java security policy file :



// allows anyone to listen on un-privileged ports

permission java.net.SocketPermission
"localhost:1024-, "listen,accept,connect,resolve";


Cheers,

bharani.
About | Sitemap | Contact