Thread:
 Hibernate-Annotation and Eclipse RCP- IllegalAcces... 
 vata   22 Apr 2007, 21:59 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: vata (22 Apr 2007, 21:59) Replies: 0, Views: 9162
Subject: Hibernate-Annotation and Eclipse RCP- IllegalAccessExce...
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE 
PAGE!POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO 
THE 
PAGE!

More information about why this is about OSGI.
The Exception throws only when running the application as Eclipse RCP 
but the junit test case is work fine as expected.

this was the exception stack trace:
java.lang.IllegalAccessError: tried to access method 
org.hibernate.cfg.Mappings.<init>
(Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util
/Map;Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Lorg
/hibernate/cfg/NamingStrategy;Ljava/util/Map;Ljava/util/Map;Ljava/util/
Map;Ljava/util/List;Ljava/util/Map;Ljava/util/Map;)V from class 
org.hibernate.cfg.ExtendedMappings
	at org.hibernate.cfg.ExtendedMappings.<init>
(ExtendedMappings.java:65)
	at 
org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings
(AnnotationConfiguration.java:166)
	at 
org.hibernate.cfg.AnnotationConfiguration.secondPassCompile
(AnnotationConfiguration.java:254)
	at org.hibernate.cfg.Configuration.buildSessionFactory
(Configuration.java:1286)
	at 
net.vata.my.test.rcp.core.model.hibernate.HibernateUtils.<clinit>
(HibernateUtils.java:23)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at net.vata.my.test.rcp.ui.Application.run
(Application.java:25)
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]