views:

5

answers:

0

i want to write a server using dwr (server A) at machine A. This server will connect to another server (server B, which is on machine B) using SocketChannel after a client login to server A. however, i get a access denied (java.net.SocketPermission 203.170.117.218:8001 connect,resolve). I trace the code and found that exception is thrown at the channelToAppSrv.connect(isaApp); Then i deploy the war of this project to machine B, so that server A and server B are now located at a same machine. The error is solved somehow. I guess there is some issues about permission, but i can't fix it. i found this problem can only be reproduced if server A is at machine A. I am using ubuntu server 8.04 at both machine A and B. Any idea would be welcome.