新版tomcat无法解析web.xml问题

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wb96a1007/article/details/71665683
错误日志:
 java.io.FileNotFoundException: Could not resolve XML resource [null] with public ID [null], system ID [classes/xxx.xml] and base URI [file:/home/xxx/apache-tomcat-8.5.11/webapps/bbbb/WEB-INF/web.xml] to a known, local entity.


解决方法:
vi conf/context.xml
在<Context>中添加属性xmlBlockExternal,具体如:
<Context xmlBlockExternal="false">

猜你喜欢

转载自blog.csdn.net/wb96a1007/article/details/71665683