-->
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.  [ 2 posts ] 
Author Message
 Post subject: IllegalAccessError when running annotation test cases
PostPosted: Wed Feb 02, 2005 3:33 pm 
Newbie

Joined: Wed Feb 02, 2005 3:22 pm
Posts: 1
I'm trying to run the EntityTest annotation test case from the hibernate-annotations-3.0alpha2 distribution. I'm using hibernate-3.0beta3. I'm getting the following exception:

1) testLoad(org.hibernate.test.metadata.EntityTest)java.lang.IllegalAccessError: tried to access field org.hibernate.cfg.Configuration.classes from class org.hibernate.cfg.AnnotationConfiguration
at org.hibernate.cfg.AnnotationConfiguration.createExtendedMappings(AnnotationConfiguration.java:72)
at org.hibernate.cfg.AnnotationConfiguration.addAnnotatedClass(AnnotationConfiguration.java:44)
at org.hibernate.test.metadata.TestCase.buildSessionFactory(TestCase.java:44)
at org.hibernate.test.metadata.TestCase.setUp(TestCase.java:57)
at org.hibernate.test.metadata.EntityTest.main(EntityTest.java:276)

Looking at the Configuration class source code (including the latest and greatest in CVS), I see that the classes Map is protected which obviously doesn't allow other classes in the package to access it.

What is needed to try out Hibernate Annotations?

Thanks,
Neil


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 02, 2005 5:55 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Use hibernate 3.0beta2 or the latest CVS version of hibernate annotations

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.