Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JBoss and the fly likes Jboss error Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Jboss error" Watch "Jboss error" New topic
Author

Jboss error

ramesh poorella
Ranch Hand

Joined: Jul 19, 2011
Posts: 42
Hi,

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

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5536

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 http://download.oracle.com/javase/1.5.0/docs/api/java/lang/IllegalAccessError.html), 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: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Jboss error
 
Similar Threads
DeploymentException while deploying ear file in JBoss
Unable to deploy ejb3 entity bean with Oracle Datasource
org.springframework.beans.factory.BeanCreationException
getting null pointer exception
JBossJSFConfigureListener Error