Spring encountered web.xml errors while validating file "webapp_3_0.xsd"

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/webapp_3_0.xsd">
<servlet>
    <servlet-name>DefaultServlet</servlet-name>
    <servlet-class>
        org.springframework.web.servlet.DispatcherServlet
    </servletclass>
</servlet>
<servlet-mapping>
    <servlet-name>DefaultServlet</servlet-name>
    <url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>

      

I get

The link file contains errors ( http://java.sun.com/xml/ns/javaee/webapp_3_0.xsd ). For more information, right-click a message in the Issues view and select Show Details ...

I did, it didn't work for me:

The errors below were found when checking the "webapp_3_0.xsd" file through the "web.xml" file. In most cases, these errors can be detected by checking "webapp_3_0.xsd" directly. However, it is possible that errors will only occur when webapp_3_0.xsd is checked in the context of web.xml.

+3


source to share





All Articles