使用Hibernate为注释类创建表

使用Hibernate为注释类创建表,hibernate,Hibernate,我在犯错误。原因可能是什么?帮我渡过难关 我在考试班 log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.Se

我在犯错误。原因可能是什么?帮我渡过难关

我在考试班

log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.NoSuchMethodError: org.hibernate.cfg.SecondPass.doSecondPass(Ljava/util/Map;)V
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:315)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1156)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
at com.mindtree.test.Test.main(Test.java:28)

异常显示java.lang.NoSuchMethodError:


这意味着在运行时找不到所需的方法。问题可能是缺少一些hibernate JAR文件。

感谢您宝贵的回复。我试过用不同的罐子,问题解决了。