Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

policy file prob  RSS feed

 
Andre Mermegas
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
having a problem, heres java.policy
-----------------------------------

here is code that executes program
----------------------------------
java -Djava.security.policy=../etc/java.policy -Djava.rmi.server.codebase="file://../build/suncertify/ server/" -jar ../dist/server.jar
here is error:
--------------
access denied (java.io.FilePermission \\..\build\suncertify\server read)
[ January 11, 2002: Message edited by: Andre Mermegas ]
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you changed the policy.allowSystemProperty
setting in the java.security file? The default
true value would let you specify your policy on
the command line as you have done.
When I used the policytool to create a policy
allowing everything, I did not specify a codebase
and the policytool showed:
CodeBase <ALL>
but the text of the policy file shows
grant {
permission java.security.AllPermission;
};
without specifying the codebase at all.
When I tried to enter ALL or <ALL> with the
policytool, I got error messages.
Maybe your empty CodeBase spec is interpreted to
apply the permission to no CodeBase.
HTH,
Joe
 
Andre Mermegas
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that the problem was using the file://../path/tocodebase. This didnt seem to go over well,but when i changed it to the full path
it worked. file://c:/path/to/codebase
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!