I have two questions on running Tuscany code in Eclipse with security
manager and user policy files.
1) In a command line environment, I usually provide a policy files with
the following simple syntax:
java -Djava.security.manager -Djava.security.policy=mypolicy.policy
MyApp
However with my Tuscany sample in Eclipse, I had trouble finding the
policy file with that sort of syntax when I placed my policy in the
src/main/resource or target/classes directory. It did work when I
provided a long ugly workspace file URL:
java -Djava.security.manager
-Djava.security.policy=file:/D:/workspaces/tuscany-code/sample-security-getprops/target/classes/mypolicy.policy
MyApp
Does anyone have a more usable URL or place to locate the policy file so
I can use the first simpler syntax?
2) In a similar vein, I tried to add some permissions in my policy file
for the tuscany runtime code. I found that this ugly type of syntax
inside the policy file seemed to work:
grant codeBase "file:/tuscany-sca*.jar" {
...
}
However, this simpler, more understandable, more general way of
specifying the code base did not seem to work for me:
grant codeBase "http://org.apache.tuscany.sca/-" {
...
}
Is there a simpler more obvious way to add access to the runtime code?
--
Thanks, Dan Becker
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]