I have deployed an application to an ISP environment (running resin 2.X application server). During the hibernate initialisation I have been getting the following error:
Code:
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkPropertiesAccess(SecurityManager.java:1243)
at java.lang.System.getProperties(System.java:501)
at net.sf.hibernate.cfg.Environment.<clinit>(Environment.java:473)
I have seen numerous posts regarding this senario. I understand this exception is thrown due to a call to System.getProperties(). I wanted to know what is the MINIMUM requirements for a java.policy file to run hibernate in a restricted environment.
I posted this to the beginners forum but got no responses.
Thanks
DG