-->
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.  [ 4 posts ] 
Author Message
 Post subject: java.lang.RuntimePermission accessDeclaredMembers
PostPosted: Tue Apr 27, 2004 3:46 am 
Newbie

Joined: Tue Apr 27, 2004 3:42 am
Posts: 2
I'm using hibernate version 2.0 final 8 June 2003 and Resin 2.1.10.
My provider of hosting doesn't allow me permisson:
java.lang.RuntimePermission accessDeclaredMembers.

So while initializing scheme there is error:

java.lang.ExceptionInInitializerError: java.security.AccessControlException:
access denied (java.lang.RuntimePermission accessDeclaredMembers)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at
java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at VHostSecurityManager.checkPermission(VHostSecurityManager.java:163)
at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1650)
at java.lang.Class.checkMemberAccess(Class.java:1337)
at java.lang.Class.getDeclaredMethod(Class.java:1155)
at net.sf.cglib.ReflectUtils.findMethod(ReflectUtils.java:115)
at net.sf.cglib.ReflectUtils.findMethod(ReflectUtils.java:87)
at net.sf.cglib.MethodConstants.<clinit>(MethodConstants.java:62)
at net.sf.cglib.CodeGenerator.<clinit>(CodeGenerator.java:68)
at net.sf.cglib.KeyFactory.create(KeyFactory.java:113)
at
net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:31
8)
at
net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:61
2)
at _manage._init__jsp._jspService(/manage/init.jsp:14)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:506)
at
com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
at
inkar.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter
.java:165)
at
com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:344)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274
)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:484)


what should I do?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 27, 2004 4:40 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Check a Java security tutorial and reduce your security constraints on the appropriate packages

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 27, 2004 5:26 am 
Newbie

Joined: Tue Apr 27, 2004 3:42 am
Posts: 2
I can't change security constraints on this packages - i'm
using hosting.

Is it any other way to solve this problem


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 27, 2004 5:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
No - complain to your hoster.


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