0

I'm getting below error. What might be the reason? Help me through this.

I'm Inside Test class

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)
0

1 Answer 1

1

The excepction says java.lang.NoSuchMethodError:

Meaning at run time the required method is not found. The problem could be some hibernate JAR files missing .

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for your valuable reply. I tried with different set of jars and the problem got fixed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.