These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Settings in java.policy for a restricted environment
PostPosted: Tue Jun 08, 2004 11:48 pm 
Newbie

Joined: Tue Jun 08, 2004 12:15 am
Posts: 2
I have deployed an application to an ISP environment (running resin 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.

Thanks

DG


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.