users@jersey.java.net

[Jersey] Jersey clash with Hibernet (ASM library)

From: Nilofer Huish <nilofer_h1984_at_yahoo.com>
Date: Sat, 13 Aug 2011 13:03:15 -0700 (PDT)

Hi all,

We have an existing project which uses Hibernate. Now we are
implementing REST with Jersey. We are facing a problem because Jersey
uses higher version of asm library than Hibernate. We have read
solutions online that suggest to replace hibernate libraries ( cgi-lib
to cglib-nodep-2.2.jar). But we can't really replace/modify/change
hibernate libraries because hibernate is used by other application as
well.


So is there way we can change some of the Jersey libraries and
get it compatible with hibernate?  FYI - we use Jersey 1.2 and hibernate
 3.1


FYI - we have same issue reported here:


http://stackoverflow.com/questions/2432471/error-java-lang-nosuchmethoderror-org-objectweb-asm-classwriter-initiv

I appreciate your quick reply, since we have to solve this issue quickly :(


Thanks

Nilofer...