[STS + Gradle + jsp] http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd 에 관한 오류



Referenced file contains errors (http://www.ibm.com/webservices/xsd/
 j2ee_web_services_client_1_1.xsd). For more information, right click on the message in the Problems View and select "Show Details..."

[Show Details 부분]
The errors below were detected when validating the file "j2ee_web_services_client_1_1.xsd" via the file "web.xml".
In most cases these errors can be detected by validating "j2ee_web_services_client_1_1.xsd" directly.
However it is possible that errors will only occur when j2ee_web_services_client_1_1.xsd is validated in the context of web.xml.



gradle 프로젝트 삽질 ing...

프로젝트 완성 후 서버를 돌리면 자동으로 web.xml을 생성한다. 왜인지 이유는 차차 찾기로 하고..
근데 이 xml파일에서 이상한 에러가 난다. 정보도 거의 없었다.. 흑흑
그러다가 2007~2008년 쯤 올라온 글들에 답이 있었다. 이게 왜 지금 나한테 나는걸까..?



Window -> Preferences -> XML -> XML Catalog -> XML Catalog Entries 박스
-> User Specified Entries 클릭 후 Add 버튼
-> Add XML Catalog Element 창 -> Catalog Entry 안에

Location: http://java.sun.com/xml/ns/j2ee/j2ee_web_services_client_1_1.xsd
Key type: Schema Location
Key: http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd

이렇게 입력 후 저장하고 xml파일을 지웠다.


그리고 서버를 올려주니까 xml이 또 생성되고 오류가 한 번 더 났다. (나쁜말) (심한말)



cvc-complex-type.4: Attribute 'version' must appear on element 'web-app'.




이 에러는 다소 직관적이다. 버전만 넣어주면 해결된다.

에러가 난 줄 맨 끝 id="WebApp_ID" 옆에 version="2.4" 를 입력하고 저장하면 끝~

Comments

Popular posts from this blog

[Spring Boot] jsp파일에서 application.properties 값 바로 사용하기!!!

STS/이클립스 Java Virtual Machine Launcher 오류 (ini파일, jdk 수정해도 안될때)

1998년도 구룡초등학교 재학생을 찾습니다.