SSH 使用slf4j+logback,却需要commons-logging.jar
跑跑鱼 2011-04-07 06:16:28 新配置的SSH框架,启动时报错:
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
.......(略)
加入commons-logging.jar就能启动,而且日志也正常运行。但是我此处已经用了slf4j,为什么还需要commons-logging呢?是spring启动时需要吗?