Mickael Istria wrote:
Your problem may be related to a conflict on the "asm" dependency. Indeed,
CXF uses a newer "cglib" version than hibernate, that itself uses a newer
"asm", so that it sometimes cause issues when integrating them together
(Exception such as NoSuchMethodError)
The workaround I use is to replace the old cglib (and its dependency) by
the cglib-nodep.jar in your classpath, that is OK for Hibernate and does not
require an old "asm".
If you use Maven, this sample should help you to understand how to resolve
such conflict:
<dependency>
<!-- This artifacts adds hibernate as a dependency -->
<groupId>org.ow2.bonita</groupId>
<artifactId>bonita-server</artifactId>
<version>4.0.1</version>
<scope>test</scope>
<exclusions>
<exclusion> <!-- Then remove the dependency to cglib to avoid
conflicts with CXF's asm -->
<groupId>cglib</groupId>
<artifactId>cglib</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Replaced old cglib by cglib-nodep -->
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.1_3</version>
</dependency>
I Found the solution here: http://mail-archives.apache.org/mod%5Fmbox/cxf-users/200901.mbox/%[email protected]%3E