-
1. Re: From JBoss4 to JBoss AS7 HibernateUtil initialization
haroonfoad Apr 4, 2012 4:27 AM (in response to haroonfoad)Thanks Allah,
I have solved this issue by making changes in pom.xml as follow:
1. change hibernate library from
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate</artifactId>
<version>3.2.6.ga</version>
<scope>provided</scope>
</dependency>
to
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>3.6.10.Final</version>
</dependency>
2.change the scope of the following dependency from provided to compile
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>3.2</version>
</dependency>
3.Add this dependency
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
</dependency>
Thanks all.