db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "DerbyWindowsService" by AndreasKnees
Date Sun, 21 Oct 2007 19:41:26 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by AndreasKnees:
http://wiki.apache.org/db-derby/DerbyWindowsService

The comment on the change is:
add policy settings

------------------------------------------------------------------------------
  wrapper.ntservice.password=derbypw}}}
  There are alternative options if you do not want to put the account password into a file.
See the JSW docs for more information.
  
+ ===== Set Java policy =====
+ 
+ To enable the derby network server and the wrapper to open connections the polycies for
the wrapper and derby jar files have to be added in
+ the policy-files of the execution JVM.
+ 
+ Add the following lines to {{{C:/Program Files/Java/jdk1.6.0_02/lib/security/java.policy}}}
+ 
+ {{{
+    // Give Wrapper classes full permissions
+ grant codeBase "file:C:/Program Files/Derby/lib/wrapper.jar" {
+     permission java.security.AllPermission;
+ };
+ 
+ // Give Derby net classes full permissions
+ grant codeBase "file:C:/Program Files/Derby/lib/derbynet.jar" {
+     permission java.security.AllPermission;
+ };
+ }}}
+ 
  ===== Start It Up =====
  Before installing the service, run it from the console to ensure things are working properly.

  {{{

Mime
View raw message