maven2, slf4j, hibernate error
Got following exception while executing “mvn test”
java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory
My pom.xml had following entry wrt slf4j -
1
2
3
4
org.slf4j
slf4j-log4j12
1.5.6
Adding slf4j api dependency did the trick -
1
2
3
4
org.slf4j
slf4j-api
1.5.6
This post is licensed under CC BY 4.0 by the author.