-->
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.  [ 5 posts ] 
Author Message
 Post subject: Hibernate java.policy requirements in Restricted Environment
PostPosted: Thu Jun 17, 2004 7:34 am 
Newbie

Joined: Tue Jun 08, 2004 12:15 am
Posts: 2
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


Top
 Profile  
 
 Post subject: I am having this exact same problem...solution?
PostPosted: Sun Jun 05, 2005 4:11 pm 
Newbie

Joined: Sat Apr 30, 2005 5:47 pm
Posts: 4
any ideas?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 05, 2005 11:53 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://www.hibernate.org/294.html


Top
 Profile  
 
 Post subject: Re: I am having this exact same problem...solution?
PostPosted: Mon Jun 06, 2005 5:36 am 
Newbie

Joined: Tue May 17, 2005 8:39 am
Posts: 14
russellmd wrote:
any ideas?


I am using SUN AS 8.1 and I have added those permissions:

permission java.lang.RuntimePermission "getProtectionDomain";
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 13, 2006 3:43 am 
Newbie

Joined: Sun Aug 13, 2006 3:35 am
Posts: 6
Is there any way to bypass protection Manager - As we dont have access to protectionManager in secuired shared tomcat environment ?
Any thoughts and helps plz


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

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.