I am creating a project in eclipse and I get an error in the web-app in web.xml.
Can anyone please tell me the solution?
Thank you.

【Development environment】
・ Development tool: spring-tool-suite-4-4.8.0
・ OS: Windows10

【Source code】

・ Error location

<? 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"
  xmlns: web = "http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
  xsi: schemaLocation = "http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

·Error message

Error while downloading'http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd' to C: Directory
  • Answer # 1

    The description in the header of the web-app looks like an old version and a mess.

    Is mixed with.

    If it is a recent version, it will look like the following.

    <web-app xmlns = "http://xmlns.jcp.org/xml/ns/javaee"
      xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
      xsi: schemaLocation = "http://xmlns.jcp.org/xml/ns/javaee
                          http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd "
      version = "4.0">