views:

667

answers:

2

Hi,

I have found out that "Hibernate cannot be combined with the reference implementation of JAX-RS." on the link http://lists.jboss.org/pipermail/hibernate-issues/2009-May/015628.html

So i am unable to combine JAX-RS (jersey) with hibernate, does anybody know a work around for this ?

+1  A: 

Upgrade to a Hibernate 3.3.2 or later.

If you follow the link to the bug report that message was generated from, it indicates that the latest versions of Hibernate (since 3.3.2) use a different bytecode manipulation package (Javassist), which eliminates the conflict over ASM which caused the problem.

Chadwick
HIbernate 3.3.2 didnt help, i think we still need to instruct hibernate to use javassist in hibernate.properties file, where my project uses hibernate.cfg.xml file, and we cannot enforce javassist in xml file.
+5  A: 

The root of evil is cglib. Substitute cglib-2.1.3.jar to cglib-nodep-2.1_3.jar and delete hibernate's asm*.jar files.

FoxyBOA