报错信息提示:
Referenced file contains errors (http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd). For more information, right click on the message in the Problems View and select “Show Details…”
报错前web.xml内容:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
<display-name>SSM-easymall-1</display-name>
</web-app>
修改内容:将http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd中的java.sun.com替换成xmlns.jcp.org