'Spring MVC web.xml errors [closed]

Full image of errors

So am doing course on spring and got to spring MVC, I imported spring lib and 2 more jar files that were also needed, and imported default web.xml from course. And I get 6 errors which makes no sense to me. I have no idea what any of this error means

  1. "Multiple annotations found at this line:

    • There are '2' errors in 'http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/ javaee_7.xsd'.
    • There are '43' errors in 'http://xmlns.jcp.org/xml/ns/javaee/web-common_3_1.xsd'.
    • There are '16' errors in 'http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/ jsp_2_3.xsd'."
  2. "There are '3' errors in 'http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd'."

  3. "Invalid element name:

  • display-name

One of the following is expected:

  • module-name
  • distributable
  • context-param
  • filter
  • filter-mapping
  • listener
  • servlet
  • servlet-mapping
  • session-config
  • mime-mapping
  • welcome-file-list
  • error-page
  • jsp-config
  • security-constraint
  • login-config
  • security-role
  • message-destination
  • locale-encoding-mapping-list
  • deny-uncovered-http-methods
  • absolute-ordering

Error indicated by: {http://xmlns.jcp.org/xml/ns/ javaee} with code:"

  1. "cvc-id.3: A field of identity constraint 'web-common-servlet-name-uniqueness' matched element 'web-app', but this element does not have a simple type."


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source