1 .java.lang.IllegalArgumentException: Document base /XXX/tomcat/webapps/manager does not exist
解决方法:在tomcat 里找到~confCatalinalocalhost 目录下有个manager.xml文件 ,删除manager.xml文件重启tomcat 就OK了!
2 .错误log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
错误信息 : log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
解决方法 : 在WEB-INF/classes/路径下加上文件 log4j.properties
3 .Tomcat 启动报错:No default web.xml
原因是:tomcat 中conf 目录中的 web.xml 被无意删除掉了,conf 目录 没有 web.xml 导致的问题是,
server.xml 中配置的所有的 web项目都无法访问。报 404 错误。
解决:从其他tomcat中复制一个 web.xml过来就行了。