title: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter
body: <p>Hi I am developping a small application using hibernate2 and I bumped into the exception that reads java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter</p>
  
  <p>Here is the stacktrace:</p>
  
  <pre><code>INFO: connection properties: {user=root, password=manel}
  16 mai 2011 16:03:27 net.sf.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
  INFO: Transaction strategy: net.sf.hibernate.transaction.JDBCTransactionFactory
  16 mai 2011 16:03:27 net.sf.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
  INFO: No TransactionManagerLookup configured (in JTA environment, use of process level read-write cache is not recommended)
  16 mai 2011 16:03:28 net.sf.hibernate.cfg.SettingsFactory buildSettings
  INFO: Use scrollable result sets: true
  16 mai 2011 16:03:28 net.sf.hibernate.cfg.SettingsFactory buildSettings
  INFO: Use JDBC3 getGeneratedKeys(): true
  16 mai 2011 16:03:28 net.sf.hibernate.cfg.SettingsFactory buildSettings
  INFO: Optimize cache for minimal puts: false
  16 mai 2011 16:03:28 net.sf.hibernate.cfg.SettingsFactory buildSettings
  INFO: Query language substitutions: {}
  16 mai 2011 16:03:28 net.sf.hibernate.cfg.SettingsFactory buildSettings
  INFO: cache provider: net.sf.hibernate.cache.EhCacheProvider
  16 mai 2011 16:03:28 net.sf.hibernate.cfg.Configuration configureCaches
  INFO: instantiating and configuring caches
  Exception in thread "main" java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.&lt;init&gt;(Z)V
  at net.sf.cglib.core.DebuggingClassWriter.&lt;init&gt;(DebuggingClassWriter.java:47)
  at net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)
  at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)
  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.core.KeyFactory.create(KeyFactory.java:104)
  at net.sf.hibernate.impl.SessionFactoryImpl.&lt;clinit&gt;(SessionFactoryImpl.java:236)
  at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:791)
  at hibernate.dao.SessionHibernate.rebuildSessionFactory(SessionHibernate.java:68)
  at hibernate.dao.SessionHibernate.getSession(SessionHibernate.java:51)
  at hibernate.dao.TimesheetDAO.addTimesheet(TimesheetDAO.java:74)
  at TestHibernate.main(TestHibernate.java:14)
  </code></pre>
  
  <p>any help please</p>