【发布时间】:2014-03-14 11:10:38
【问题描述】:
我遇到了错误。可能是什么原因?帮我解决这个问题。
我在测试课中
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)
【问题讨论】:
标签: hibernate