db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Bradbury <Stan.Bradb...@gmail.com>
Subject Problem with Policy file examples (codeBase specification)?
Date Sat, 15 Jul 2006 00:43:11 GMT
I'm spinning up on using Network Server with the default security 
manager and have found an inconsistency in policy file syntax in the 
Derby documents.  The example policy files in the Developers Guide 
differ from the example in the Server and Admin guide.

 From what I've read the syntax in the Server and Admin guide is correct 
for referring to a local files:
  SYNTAX:   grant codeBase "file:d:/derby/lib/-"
I've been using this syntax and know it works but see in the Spec this 
syntax:
     grant codeBase "file:/${java.home}/lib/ext/"

The Developers guide shows double slashes, almost like it were a URL or 
Windows network reference:
   SYNTAX:    grant codeBase "file://f:/derby/lib/derby.jar"

Does anyone which is correct or if there are valid reasons for the 
variations in a codeBase declaration?.

Here are the pages I am referring to:

 http://db.apache.org/derby/docs/10.1/devguide/rdevcsecure871406.html
 http://db.apache.org/derby/docs/10.1/devguide/rdevcsecure871422.html
 http://db.apache.org/derby/docs/10.1/devguide/rdevcsecure871439.html

 http://db.apache.org/derby/docs/10.1/adminguide/tadminnetservrun.html



Mime
View raw message