-->
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: Illegal Access Error (org.hibernate.cfg.Mappings.<init>
PostPosted: Fri Sep 14, 2007 7:37 pm 
Newbie

Joined: Fri Sep 14, 2007 7:04 pm
Posts: 2
I am attempting to implement Hibernate Annotations and experiencing great difficulty in getting this to run within JBoss.

The software and versions I am using are:
JBoss 4.0.5
Hibernate 3.2.2.ga
Hibernate Annotations 3.3.0.ga
Hibernate Commons Annotations 3.0.0.GA
EJB Persistence 3.0

I believe all the versions match up according to the Compatibility Matrix. However, I am getting the following error:

Code:
java.lang.IllegalAccessError: tried to access method org.hibernate.cfg.Mappings.<init>


Do I have a conflict somewhere within JBoss? I am able to run my application just fine outside of JBoss when performing unit and functional tests. Yet, once I deploy and start JBoss, I get the error above.

Any ideas or suggestions would be greatly appreciated.

Thanks in advance!

Blaine


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 17, 2007 1:18 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Check the JBoss distro, in server/default/lib you will find the various Hibernate releases, you need to replace them

_________________
Emmanuel


Top
 Profile  
 
 Post subject: That was it!
PostPosted: Fri Sep 21, 2007 1:11 pm 
Newbie

Joined: Fri Sep 14, 2007 7:04 pm
Posts: 2
Thanks a million. That did the trick!


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.