Hibernate and java.lang.NoSuchFieldError: TRACE

During the implementation of some integrationstests for a Spring application I faced the problem, that the tests couldn’t be executed due to the following error:

After some investigation I figured out, that Hibernate has a non transitive dependency to Log4J log4j >= 1.2.12 – I use slf4j / logback for logging -.

After I added this dependency  'org.slf4j:slf4j-log4j12:1.6.1'  to my testCompile everything works fine.

29 Kudos

Leave a Reply

Your email address will not be published. Required fields are marked *