Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap
 at org.hibernate.util.SimpleMRUCache.init(SimpleMRUCache.java:71)
 at org.hibernate.util.SimpleMRUCache.<init>(SimpleMRUCache.java:55)
 at org.hibernate.util.SimpleMRUCache.<init>(SimpleMRUCache.java:50)
 at org.hibernate.engine.query.QueryPlanCache.<init>(QueryPlanCache.java:65)
 at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:176)
 at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
 at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
 at com.yin.hibernate.model.GuestBookTest.main(GuestBookTest.java:10)
 

解决方法:
引入:commons-collections-3.1.jar