aspose file tools
The moose likes Applets and the fly likes java. security. AccessControlException: Access Denied (java. net. SocketPermission.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "java. security. AccessControlException: Access Denied (java. net. SocketPermission.." Watch "java. security. AccessControlException: Access Denied (java. net. SocketPermission.." New topic
Author

java. security. AccessControlException: Access Denied (java. net. SocketPermission..

Ramesh Babu Duggudurti
Greenhorn

Joined: Nov 11, 2003
Posts: 2
Dear All,
I have webserver on which my JSPs run and a separate server(on different machine) written in Java socket programming. when i am trying to run the client in my browser(like http://webserver/client.jsp client files on the webserver) i am getting java.security.AccessControlException: Access Denied (java.net.SocketPermission Server:3456 connect,resolve)
If i have the socket server on the same machine as the webserver or if i edit the java.policy file to include socket permissions on the machine from which iam browsing iam not getting this error.
Can anyone explain me how to overcome this problem without modifying the policy file on the clients system.
Ramesh Babu
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24061
    
  13

You don't say this, but I'm guessing the "client" is an applet; otherwise the policy files on the client wouldn't matter. Applets are specifically prohibited from making network connections from machines other than the host they were downloaded from. The only way around this is by using a digital signature in the applet; here's some information about that.
I'm moving this to the Applets forum; followups over thers.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java. security. AccessControlException: Access Denied (java. net. SocketPermission..
 
Similar Threads
to copy a policy file from server machine to client machine in java
can we streaming the A/V on the same machine?
access denied (SocketPermission 127.0.0.1:1099 connect,resolve)
setting code base
Socket Permissions