My Hibernate unit tests stopped working once I included the jmock
stuff.  I was getting very cryptic errors complaining about cglib and
no such error.

It turns out that there is a conflict between the cglib full version
used by jmock and the cglib used by hibernate.  So if you are using
both hibernate and jmock in your webapp you'll want to use this in
your maven dependency list

   <dependency>
     <groupId>jmock</groupId>
     <artifactId>jmock-cglib</artifactId>
     <version>1.0.1</version>
     <scope>test</scope>
     <exclusions>
       <exclusion>
         <groupId>cglib</groupId>
         <artifactId>cglib-full</artifactId>
       </exclusion>
     </exclusions>
   </dependency>

Not sure what happens now that shale-test is depending on jmock but I
will find out soon I'm sure.  I'll also try and add this to the wiki
soon.

Sean

Reply via email to