köksalfp
köksalfp

Reputation: 109

org.slf4j.impl.StaticLoggerBinder.SINGLETON error

remote failure: Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernate-config.xml]: Invocation of init method failed; nested exception is java.lang.IllegalAccessError: tried to access field org.slf4j.impl.StaticLoggerBinder.SINGLETON from class org.slf4j.LoggerFactory. Please see server.log for more details.

I got error which is above but i have slf4j-api-1.5.2 and slf4j12-1.5.2 jars in my project. I searched about this error, everyone said that your project has no slf4j jars or you must upgrade your jar files. I ensure have these two stuations. Now i dont know what i have to do. Thanks in advance.

Upvotes: 1

Views: 5975

Answers (1)

LConrad
LConrad

Reputation: 846

Look at http://www.slf4j.org/faq.html#IllegalAccessError - there was a breaking change in slf4j between versions 1.5.5 and 1.5.6. Your version of Hibernate could be calling an older version of slf4j, which would cause this issue. Look at your dependencies and make sure the versions are compatible.

Upvotes: 1

Related Questions