- From: Greg Kimberly <heyyou@gak.com>
- Date: Mon, 25 Nov 1996 11:03:14 -0500
- To: Anselm Baird-Smith <abaird@w3.org>, abramczyk@fokus.gmd.de
- Cc: www-jigsaw@w3.org
At 1:56 PM 11/25/96, Anselm Baird_Smith wrote: >abramczyk@fokus.gmd.de writes: ... > > 2. When I try to delete directory using RMI method deleteFolder, which >use the > > method delete(String child) from DirectoryResource, I get an exception > > > > java.lang.SecurityException > > at java.lang.SecurityManager.checkDelete(SecurityManager.java) > > at java.io.File.delete(File.java) > > ..... > > at java.lang.Thread.run(Thread.java) > > > > In order to get appropriate DirectoryResource I wrote the which >starts from > > root resorce till the resource which I want to get > > ( maybe this is possible to get this resource by calling any jigsaw >classes > > method ?). > >I guess this is because you are using the default RMI security >manager. > > > 3. I delete file resources by calling also delete(String child) method from > > DirectoryResource and it deletes file resources but when I try to >delete > > phisical file from system file I get similar exception. > > > > I will be grateful for any sugestion which could help me resolve that >problems. > > > >You will have to work on a security manager for Jiugsaw, that's not an >easy task, I am planning to investigate this myself when time allow >(basically have aplet based config through rmi) > >Anselm. The RMI folks said that all you need is *a* security manager. For testing purposes (*only*) it ought to be reasonably easy to create one that simply never throws any SecurityException. -greg --------------------------- Greg Kimberly gak.com inc. http://www.gak.com/ http://gak.www.media.mit.edu/people/gak/ (617) 641-4696
Received on Monday, 25 November 1996 11:03:04 UTC