-->
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: Virtual java host: AccessControlException when install HB
PostPosted: Wed Dec 08, 2004 2:20 am 
Newbie

Joined: Wed Nov 24, 2004 7:58 pm
Posts: 9
When I run hb in my virtual jsp host, following excpetion occurs. does anyone meet same problem? how to fix it?

Hibernate version:2.1

Full stack trace of any exception that occurs:
java.lang.ExceptionInInitializerError
at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:199)
at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:63)
at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:192)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:177)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:149)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:142)
at net.sf.hibernate.impl.SessionFactoryImpl.<clinit>(SessionFactoryImpl.java:235)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:768)
at com.edgenius.filter.HbSession.<clinit>(HbSession.java:34)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at com.caucho.server.http.QFilterConfig.createFilter(QFilterConfig.java:205)
at com.caucho.server.http.Application.buildFilterChain(Application.java:2865)
at com.caucho.server.http.Application.buildFilterChain(Application.java:2767)
at com.caucho.server.http.Invocation.service(Invocation.java:313)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)
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:534)
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission
getProtectionDomain)
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.Class.getProtectionDomain(Class.java:1384)
at net.sf.cglib.core.ReflectUtils$1.run(ReflectUtils.java:80)
at java.security.AccessController.doPrivileged(Native Method)
at net.sf.cglib.core.ReflectUtils.<clinit>(ReflectUtils.java:78)
... 23 more

Resin 2.1.13 (built Thu Apr 1 10:57:42 PST 2004)
Name and version of the database you are using:

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject: I am urgent to find this solution
PostPosted: Wed Dec 08, 2004 4:05 am 
Newbie

Joined: Wed Nov 24, 2004 7:58 pm
Posts: 9
I try to google solution. But all article suggest change java security policy file. Unfortunately, I am using a virtual host, it means I have no permission to change policy!

Is there other solution! Otherwise, my 3 weeks work will be discard! So pity!~


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

Joined: Sun Aug 13, 2006 3:35 am
Posts: 6
Hibernate is causing some serious problems in running in shared - secured environment - My Tomcat hosting provider does not grant permissions - Any suggestions ?


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.