File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Jboss error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss error" Watch "Jboss error" New topic

Jboss error

ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 61

when i am deploying my application i am getting this errr.

Peter Johnson

Joined: May 14, 2008
Posts: 5852

The root cause is:

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

Based on the description of that exception (see, I suspect that the Hibernate JAR being used at runtime doesn't match the one used to build Spring (since Spring code is what is accessing Hibernate).

Does your application contain Hibernate JARs? If so, then this is a classloading issue and you might have to define a classloader repository.

JBoss In Action
I agree. Here's the link:
subject: Jboss error
It's not a secret anymore!