Close
jGuru Forums
Posted By: Anonymous Posted On: Monday, March 15, 2004 09:17 PM
if an applet which is deployed on Server1 and a client of it access that applet which invokes a servlet from Server2 in this case a scoket exception occures... why is that? and how can an applet invokes a servlet from server2 while It is deployed on server1? following is the code of applet which is deployed on Server1 try { URL dataURL = null; URLConnection connection = null; dataURL = new URL "http://Server2/cFAS/servlet/ServletOpnControl"); connection = dataURL.openConnection(); ObjectInputStream in = new ObjectInputStream (connection.getInputStream()); String[] data1 = (String[]) in.readObject(); in.close(); } catch (Exception mue) { System.out.println("exc..."+mue); } Server1 = tomcat Server2 = Oracle9iAS The Exception is: java.security.AccessControlException: access denied (java.net.SocketPermission kpmg_shm:8080 connect,resolve)
Re: exception in Applet (java.net.SocketPermission)
Posted By: narender_reddy Posted On: Tuesday, May 25, 2004 04:59 AM