RMI with jigsaw

abramczyk@fokus.gmd.de writes:
 > Hi,
 > 
 > 	I'm trying to enlarge jigsaw funktionality by making it possible to be 
 > administrated by using RMI. I have encountered some problems:

Wow, that's a real good news, I have been willing to spend time on
this for at least six monthes now.

 > 1. When I start my server class( which implements UnicastRemoteServer ) from
 >    httpd, simply by writing at the end of the main method:
 >    	MyAdministrator administrator = new MyAdministrator(this);
 >    ,Jigsaw changes its behaviour - I can't delete any directory using generic
 >    resource editor( I can still delete files ).
 > 
 >    Netscape get back an error: Document contains no data.

Check the w3c.jigsaw.daemon package. It's purpose is to allow to run
mutliple servers along side Jigsaw itself (you will have to manually
edit the property file). Have a look at it, and don't hesitate to ask
questions , I'll be glad to help.

 > 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.

Received on Monday, 25 November 1996 07:56:38 UTC