This is an interesting issue, but I wonder if the JUnit version is a red-herring? The reason I say that is your stack trace looks like:
JUnit calls into your Hibernate DAO, your Hibernate DAO is called by Spring, Spring tries to use the Commons-Logging SLF4J impl, which is trying to use Log4J and the whole thing dies.
If this project used to work in a non-Maven project, the trick is just checking the JAR versions you had before, and specifying those exact same dependencies for Maven, it will resolve them and you'll get things working again. |