728x90
1. web.xml
the markup in the document following the root element must be well-formed
- 태그 내에 작성해야하는 내용을 태그 밖에 작성했을 때 발생
- web.xml에서 태그 내에 작성해야하는데, 태그를 먼저 닫아서 발생
- 해결 방법 : 모든 내용을 태그 안으로
cvc-elt.1.a: Cannot find the declaration of element 'web-app'
- servlet 버전과 web.xml 스키마 헤더가 일치하지 않아서 발생
- 해결 방법
- 버전에 맞는 헤더로 변경 : 참고
- ex. Servlet 4.0 (tomcat 버전에 따른 servlet 버전)
- 버전에 맞는 헤더로 변경 : 참고
<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">
</web-app>
2. pom.xml
Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer
- 아래의 plugin을 추가
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
</plugin>
3. MyBatis
3-1. mybatis-config.xml
Type interface <~~> is not known to the MapperRegistry.
- mybatis-config.xml에 mapper 파일을 등록했는지 확인 (<mapper>)
- mybatis-config.xml에 <typeAlias> 등록되어있는지 확인
99. 실행
요청된 리소스 [/<~>]은(는) 가용하지 않습니다.
- Tomcat > Modules > path를 "/"로 바꾸기
- 그래도 안되면 : 여기 참고
728x90
728x90
1. web.xml
the markup in the document following the root element must be well-formed
- 태그 내에 작성해야하는 내용을 태그 밖에 작성했을 때 발생
- web.xml에서 태그 내에 작성해야하는데, 태그를 먼저 닫아서 발생
- 해결 방법 : 모든 내용을 태그 안으로
cvc-elt.1.a: Cannot find the declaration of element 'web-app'
- servlet 버전과 web.xml 스키마 헤더가 일치하지 않아서 발생
- 해결 방법
- 버전에 맞는 헤더로 변경 : 참고
- ex. Servlet 4.0 (tomcat 버전에 따른 servlet 버전)
- 버전에 맞는 헤더로 변경 : 참고
<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">
</web-app>
2. pom.xml
Could not initialize class org.apache.maven.plugin.war.util.WebappStructureSerializer
- 아래의 plugin을 추가
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>3.2.2</version>
</plugin>
3. MyBatis
3-1. mybatis-config.xml
Type interface <~~> is not known to the MapperRegistry.
- mybatis-config.xml에 mapper 파일을 등록했는지 확인 (<mapper>)
- mybatis-config.xml에 <typeAlias> 등록되어있는지 확인
99. 실행
요청된 리소스 [/<~>]은(는) 가용하지 않습니다.
- Tomcat > Modules > path를 "/"로 바꾸기
- 그래도 안되면 : 여기 참고
728x90