SessionFactory creation failed.java.lang.NoSuchFieldError: namingStrategy
While creating the SessionFactory in Hibernate I have faced lot's of issues. This is also one the exception which I have faced, SessionFactory creation failed.java.lang.NoSuchFieldError: namingStrategy Exception in thread "main" java.lang.ExceptionInInitializerError at com.jtb.util.HibernateUtil.buildSessionFactory( HibernateUtil.java:13 ) at com.jtb.util.HibernateUtil.getSessionFactory( HibernateUtil.java:18 ) at com.jtb.test.DeleteUser.main( DeleteUser.java:11 ) Caused by: java.lang.NoSuchFieldError: namingStrategy at org.hibernate.cfg.AnnotationConfiguration.reset( AnnotationConfiguration.java:237 ) at org.hibernate.cfg.Configuration.<init>( Configuration.java:125 ) at org.hibernate.cfg.Configuration.<init>( Configuration.java:119 ) ...