启动tomcat服务器时,报java.io.FileNotFoundException: Could not resolve XML resource ...错误

今天构建maven工程并配置完成后,启动tomcat时,控制台报java.io.FileNotFoundException: Could not resolve XML resource ...,然后在博客上查看了一下,现在留个总结。

这种错误通常是因为使用了tomcat 6.0.35以后的版本造成,解决方案有两种:

1、使用tomcat 6.0.35以前的版本;

2、找到tomcat下的conf文件夹,打开文件夹内content.xml文件,在<content>内添加  xmlBlockExterna=false,如下图所示:

启动tomcat服务器时,报java.io.FileNotFoundException: Could not resolve XML resource ...错误

保存后重启服务器,可以正常启动。