[Aglets-developer] some questions about aglets security(permission)!
Status: Beta
Brought to you by:
cat4hire
From: x r. <xr...@ho...> - 2005-09-24 01:55:33
|
H,dear friends: The version of my Aglets is 2.0.2,and my OS is Windows 2003. I am a newer to Aglets,and I am developing some applications based on Aglets,and meet with some questions.There are three questions related security and policy.I am in need of your help,please help me,thanks very much! ############################### ONE ###################################################### One is this: I have not deployed domain name items,so when i start the Tahiti,on the dos console,some information just like the below appears : ************************************************************************************************************************ [Warning: The hostname seems not having domain name. Please try -resolve option to resolve the fully qualified hostname or use -domain option to manually specify the domain name.] ************************************************************************************************************************ Directions:I have not deployed DNS,and i have tested some examples given by the System,and there are no any questions,and execute properly.Sometimes I tested on the same host,sometimes on different hosts,and all situations are in good condition.But i want to know how important the domain name is, and is it necessary for me to deploy it?is it important for the domain name to some projects about file-transmission and file-access between different hosts?Please give some advices,thanks! ###################################### TWO ################################################## Two is this: i tested the example provied by the Aglets,lying in the $aglet_home$\public\examples\patterns\Watcher.class,on the same host.I fill in the corresponding information,and click the "send"button,and some exceptions appear on the console screen.The exception information is as follows: ************************************************************************************************************************ java.lang.Exception: atp://xru:2000/:<java.security.AccessControlException::access denied (java.io.FilePermission f:\1.txt read)>; DURING initializeCheck at com.ibm.agletx.patterns.Notifier.observeInit(Notifier.java:186) at com.ibm.agletx.patterns.Notifier.start(Notifier.java:270) at com.ibm.agletx.patterns.Notifier.handleMessage(Notifier.java:154) at com.ibm.aglets.MessageImpl.handle(Unknown Source) at com.ibm.aglets.AgletThread.run(Unknown Source) ***** Addr: atp://xru/ place: No integrity check because no security domain is authenticated. ************************************************************************************************************************ Directions:From the exception information,i think the problem must has something to do with the security and permission of this system.But i want to know how i should configure the related security profiles of Aglets,and how i deal with this problem.Is it necessary for me to modify the source code or the example alget itself?is this problem related with the policy file?If so,how can i modify the policy file?Please help me,SOS!thanx!!! #################################### THREE ################################################# Three is this: I develop an file-searching application based on Aglets.When i tested this program as the normal java program,it runs properly.when i encapsules it into an aglet,and put it to the corresponding directory.On the Tahiti,i create this aglet,and on the dos console,there appears some exception information,which is this(this program is used to seach a file,which lies in the path of "f:\temp1\he.txt"): ************************************************************************************************************************ java.security.AccessControlException: access denied (java.io.FilePermission f:\temp1\he.txt read) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:524) at com.ibm.aglets.tahiti.AgletsSecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkRead(SecurityManager.java:863) at java.io.File.isFile(File.java:723) at examples.hjl_testbed.test0.run(test0.java:1987) at com.ibm.aglets.SystemMessage.handle(Unknown Source) at com.ibm.aglets.AgletThread.run(Unknown Source) ************************************************************************************************************************ Directions:Obviously,the problem is somewhat like the second one.It is relate to the security and permission of Aglets itself.How can i solve it?By the way, is the permission and security something to do with the OS platform,other than the Aglets platform?please give some some suggestions, I am waiting for you,thanks a lots!!! ##################################################################################### My email address is xr...@ho...,thanks very much!!! _________________________________________________________________ 与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn |