web.xml error처리

공수정·2021년 10월 20일
0

error

목록 보기
1/10
  • 문제상황

    빨간줄로 밑줄이 생기지도 않고, 단순히 빨간 엑스가 생김

  • 에러메세지

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

  • 해결방법

    java.sun.com --> JAVA 대문자로 바꾸면 해결

변경 전

<web-app version="2.5" 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 https://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

변경 후

<web-app version="2.5" 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 https://JAVA.sun.com/xml/ns/javaee/web-app_2_5.xsd">

참고 : https://hojin880214.tistory.com/56

profile
계속해서 공부하는 개발자입니다 :)

0개의 댓글