Thanks Raymond. Your codeBases worked for me too. Be sure to put
tuscany.policy in the project root when using
-Djava.security.policy==tuscany.policy.
Now on to those pesky doPriviledged blocks ....
Raymond Feng wrote:
I got the following working with Eclipse.
1) Create a java2 security policy file such as tuscany.policy in root of
the sample project with the following content:
grant codeBase "file:/C:/Tuscany/java/sca/modules/-" {
permission java.security.AllPermission;
};
grant codeBase "file:${user.home}/.m2/repository/-" {
permission java.security.AllPermission;
};
The first grant is for the tuscany modules in your workspace. You might
need to adjust it to fit your environment.
The second grant is for the 3rd party jars tuscany modules depend on.
2) Create a run profile for the main class with VM arguments set to:
-Djava.security.manager -Djava.security.policy==tuscany.policy
-Dpolicy.allowSystemProperty=true
--
Thanks, Dan Becker
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]