개발

Java | Caused by: org.springframework.core.NestedIOException: Failed to parse mapping resource:

AM0530 2021. 6. 23. 10:26

1. 오류 : 

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connection' defined in ServletContext resource [/WEB-INF/conf/spring/context-datasource.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: file [D:\...\...\...\WEB-INF\...\sqlmaps\...\...]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 103;

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'connection' defined in ServletContext resource [/WEB-INF/conf/spring/context-datasource.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: file [D:\...\...\...\WEB-INF\...\sqlmaps\...\...]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML.  Cause: org.xml.sax.SAXParseException; lineNumber: 4; columnNumber: 103;

 

2. 오류원인 : web.xml이 xml 파일 두는 폴더에 복사되어 있었다. 

3. 오류해결 : 소스 코드 폴더와 소스코드 실행하는 폴더에서 잘못된 경로에 복사된 web.xml 삭제