Discussion:
javaspace error - transaction
SUBSCRIBE JAVASPACES-USERS Anonymous
2009-04-08 07:41:08 UTC
Permalink
Thank you sir for all your replies...


I got the solution..

I added the security manager by using the following code in main program...

if(System.getSecurityManager()==null){
System.setSecurityManager(new RMISecurityManager());
}



Then to run the client program using the command prompt. I used the
following code:

java -Djava.security.main -Djava.security.policy=mytree.policy -cp
"c:\ProgramFiles\jini2_1\lib\jsk-lib.jar";"c:\ProgramFiles\jini2_1\lib\jini-core.jar";"c:\ProgramFiles\jini2_1\lib\jini-ext.jar";"c:\ProgramFiles\jini2_1\lib\jsk-resources.jar";"c:\ProgramFiles\jini2_1\lib\jsk-platform.jar";
myxml


where mytree.policy is a policy file having the following permission:

grant {
permission java.security.AllPermission;
};

To run jini2_1, I used the following command line

java -Djava security.policy=jsk-all.policy -jar "C:\Program
Files\jini2_1\lib\start.jar" startAll.config

Make sure that while running client and jini2_1 services the path for policy
files should be specified correctly...

Thanking you all again..
xxx

===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVASPACES-USERS". For general help, send email to
***@java.sun.com and include in the body of the message "help".

To view past JAVASPACES-USERS postings, please see:
http://archives.java.sun.com/archives/javaspaces-users.html

Loading...