2 zhuoyang111 zhuoyang111 于 2013.12.04 22:38 提问

eclipse的SSH框架配置sping错误,求解!

严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.web.context.ContextCleanupListener.(ContextCleanupListener.java:43)
at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:80)
at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4561)
at org.apache.catalina.core.StandardContext$4.call(StandardContext.java:5233)
at org.apache.catalina.core.StandardContext$4.call(StandardContext.java:5212)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1643)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1488)
... 9 more
web.xml中配置

org.springframework.web.context.ContextLoaderListener

之后出现如上错误!

3个回答

zhuoyang111
zhuoyang111   2013.12.06 21:40
已采纳

loggging包导入了,可能是下载的jar的问题,我重新配置了一遍,没有出现这种错误

u010413669
u010413669   2013.12.05 10:12

少导了个 commons.logging什么的架包

zhuoyang111
zhuoyang111 你好,你所说的commons.logging架包已经通过user library导入了。
接近 4 年之前 回复
wwx0613
wwx0613   2013.12.05 15:10

缺少commons-logging.jar

Csdn user default icon
上传中...
上传图片
插入图片