maven管理的项目,里面已经引入了log4j的包
maven引入如下:
log4j
log4j
1.2.16
compile
但还是报
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
... 6 more
Caused by: java.lang.NoClassDefFoundError: Lorg/apache/log4j/Logger;
看了下tomcat项目中lib 下,maven的包没有到过来,感觉很奇怪.昨天项目还是OK的
修改如下:
add中选择
问题搞定
参考( http://blog.csdn.net/joyous/article/details/52889755)