The fix for this USUALLY is to configure hibernate to use the cglib-nodeps jar and remove it's version of asm. The cglib-nodeps jar contains a "custom" version of asm 1.x that it needs, but in it's own namespace so it won't conflict with the newer version needed by CXF and other asm using tools.
Dan On Tuesday 29 April 2008, Martijn Brinkers wrote: > Hi, > > I upgraded to version 2.1 but now exceptions are being thrown at > startup which seem related to an incompatibility between asm.jar used > by Hibernate and asm.jar used by CXF: > > Exception in thread "main" > org.springframework.beans.factory.BeanCreationException: Error > creating bean with name 'usersWS': Invocation of init method failed; > nested exception is java.lang.NoSuchMethodError: > org.objectweb.asm.ClassWriter.visit(IILjava/lang/String;Ljava/lang/Str >ing;Ljava/lang/String;[Ljava/lang/String;)V > > > This posting mentions similar problems > > http://www.nabble.com/cxf-2.0.1-incubator---dependency-incompatibility >-with-hibernate-td12141625.html#a12313341 > > Any idea how I can resolve this? should I upgrade asm.jar (ie. not use > the version provided by the Hibernate distriubution)? > > Thanks, > > Martijn Brinkers -- J. Daniel Kulp Principal Engineer, IONA [EMAIL PROTECTED] http://www.dankulp.com/blog
