Himanshu Yadav
Himanshu Yadav

Reputation: 13585

Spring is ignoring commons-logging.jar

I am trying to publish my webservice using CXF 2.6.0. While starting tomcat server I am getting following exception:

org.springframework.beans.BeanInstantiationException : Could not instantiate bean class [org.springframework.web.context.support.XmlWebApplicationContext]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

No need to say that I already have common-logging-1.1.1.jar in my classpath. What else am I missing?

Upvotes: 1

Views: 874

Answers (1)

akhi
akhi

Reputation: 692

Pls check if the LogFactory is loaded multiple times during publish. This might occur if there are jar conflicts loading the same class.

Upvotes: 1

Related Questions