The file attached to this issue is only intended as a convenience for our users using jdk 1.7 u51 - or jdk 18, until we have an official Apache 10.10.(2) release with the fixes in the default policyfile in it.
I admit I did not test before attaching the file straight from the codebase, I assumed it would work because I thought this is the same policy file that works as the default policy file included in derbynet.jar
But it was not working as work-around, when you issue the command suggested:
java -Djava.security.manager -Djava.security.policy=[filename] org.apache.derby.drda.NetworkServerControl start&
you got this error:
java.security.AccessControlException: access denied ("java.util.PropertyPermission" "derby.__serverStartedFromCmdLine" "write")
This permission is apparently not needed in the default policy file.
Rick modified the 1010_server.policy workaround file by adding this permission, and then went on to add some further permissions needed to get it working under jdk18 - specifically the deregister permission. This puzzles me too - it seemed from the original notes that this was only needed for embedded.
And I am still puzzled, I now also got myself jdk17u51, but I cannot get the command to work with the policy file, even though it has the "derby.__serverStartedFromCmdLine" permission that it's complaining about...I have tried modifying my CLASSPATH to have just derbyrun.jar, and to have derbyclient.jar;derbynet.jar, but I get the same effect...?
I added the permission to the various codebases in the workaround file (derbyclient.jar, derby.jar, derbytools.jar, derbynet.jar) and still get the same...
I must be doing something wrong, but what...