-->
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.  [ 3 posts ] 
Author Message
 Post subject: AccessControlException: access denied - accessDeclaredMember
PostPosted: Tue Apr 10, 2007 5:28 pm 
Newbie

Joined: Tue Apr 10, 2007 5:15 pm
Posts: 1
Hello!

I'm having a problem with an application deploy because the server default configuration do not grant "RuntimePermission acessDeclaredMember". The company hosting my application told me that I can put my Hibernate jar in a shared folder with this permission but this will not work because Hibernate uses reflection with my domain classes(in my webapp folder)

Does anybody have some workaround to this problem?

Thanks!

*EDITED*

StackTrace

avax.persistence.PersistenceException: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:252)
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:120)
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:51)
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)


Top
 Profile  
 
 Post subject: Re: AccessControlException: access denied - accessDeclaredMe
PostPosted: Thu Apr 12, 2007 5:31 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
felipecruz wrote:
The company hosting my application told me that I can put my Hibernate jar in a shared folder with this permission but this will not work because Hibernate uses reflection with my domain classes(in my webapp folder)


Hibernate use the thread context classloader to load the entities, there should be no problem

_________________
Emmanuel


Top
 Profile  
 
 Post subject: Hi cool !
PostPosted: Tue Mar 02, 2010 1:55 am 
Newbie

Joined: Tue Mar 02, 2010 1:33 am
Posts: 1
Is your access denied still ?
Just click on to this site http://www.tucktail.com/ & get hosting services ..
According to my experience i got hosting services in this site xnynz.com & got satisfactory result with damn good solution!!!
They are very much good in providing services !!!
This site provide the hosting services at cheap cost than other hosting company..
Click on to this site to get the hosting services ..
Cheers-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.