As I use neither maven nor hibernate, this is a guess. But it would seem that the library that hibernate needs (ASM) is not being included by maven.
Stephen James Adams wrote: > I'm trying to resolve the following warning in our Maven2 build: > > [WARNING] POM for 'joda-time:joda-time-hibernate:pom:1.0:compile' is > invalid. It will be ignored for artifact resolution. Reason: Failed to > validate POM for project joda-time:joda-time-hibernate at Artifact > [joda-time:joda-time-hibernate:pom:1.0:compile] > > This error should be fixed now, according to this JIRA ticket: > http://jira.codehaus.org/browse/MEV-554 > > So I removed the joda-time-hibernate POM from my local repository in > order for it to be refreshed with this new version upon the next Maven > build. Once I did this my Maven build started croaking in the test > phase (it was working fine before with the exception of the above > warnings). Now when I look at the surefire reports for the tests that > are failing I see NoSuchMethodErrors and NoClassDefFoundErrors: > > java.lang.NoSuchMethodError: > org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V > at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:63) > at > net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173) > at > net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) > at > net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:215) > at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145) > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117) > at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108) > at net.sf.cglib.proxy.Enhancer.<clinit>(Enhancer.java:64) > at > org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117) > at > org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43) > at > org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162) > at > org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135) > at > org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55) > at > org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56) > at > org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295) > at > org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434) > at > org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109) > at > org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) > at > org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226) > at > org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) > at > org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) > more... > > java.lang.NoClassDefFoundError > at > org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117) > at > org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43) > at > org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162) > at > org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:135) > at > org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55) > at > org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.<init>(EntityEntityModeToTuplizerMapping.java:56) > at > org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:295) > at > org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:434) > at > org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:109) > at > org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55) > at > org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226) > at > org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294) > at > org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915) > more... > > > Can someone advise? Thanks in advance for any help! > > --James > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > Joda-interest mailing list > Joda-interest@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/joda-interest > ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest