eclipse - java.lang.ClassNotFoundException: org.apache.commons.logging.Log -


while running springmvc program through eclipse showing below error

'starting tomcat v8.0 @ localhost' has encountered problem. server tomcat v8.0 server @ localhost failed start.

using eclipse luna configured tomcat 8.0

below relevant stacktrace of error

caused by: org.apache.catalina.lifecycleexception: failed start component     [standardengine[catalina].standardhost[localhost].standardcontext[/mvcvalidation    sapp7sfc]]     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154)     ... 6 more caused by: java.lang.noclassdeffounderror: lorg/apache/commons/logging/log;     @ java.lang.class.getdeclaredfields0(native method)     @ java.lang.class.privategetdeclaredfields(class.java:2499)     @ java.lang.class.getdeclaredfields(class.java:1811)     @ org.apache.catalina.util.introspection.getdeclaredfields(introspection.java:106)     @ org.apache.catalina.startup.webannotationset.loadfieldsannotation(webannotationset.java:256)     @ org.apache.catalina.startup.webannotationset.loadapplicationservletannotations(webannotationset.java:132)     @ org.apache.catalina.startup.webannotationset.loadapplicationannotations(webannotationset.java:65)     @ org.apache.catalina.startup.contextconfig.applicationannotationsconfig(contextconfig.java:334)     @ org.apache.catalina.startup.contextconfig.configurestart(contextconfig.java:774)     @ org.apache.catalina.startup.contextconfig.lifecycleevent(contextconfig.java:305)     @ org.apache.catalina.util.lifecyclesupport.firelifecycleevent(lifecyclesupport.java:117)     @ org.apache.catalina.util.lifecyclebase.firelifecycleevent(lifecyclebase.java:90)     @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5053)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     ... 6 more  caused by: java.lang.classnotfoundexception: org.apache.commons.logging.log     @ org.apache.catalina.loader.webappclassloaderbase.loadclass(webappclassloaderbase.java:1305)     @ org.apache.catalina.loader.webappclassloaderbase.loadclass(webappclassloaderbase.java:1157)     ... 20 more 

as ccn see in root exception: caused by: java.lang.classnotfoundexception: org.apache.commons.logging.log

you miss commons-logging.jar in classpath.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -