에러 내용:

Failed to parse mapping resource: 'file [/Users/jinwoolee/Documents/workspace-spring-tool-suite-4-4.8.1.RELEASE/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/youtubeAPI/WEB-INF/classes/mappers/classes-mapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. The XML location is 'file [/Users/jinwoolee/Documents/workspace-spring-tool-suite-4-4.8.1.RELEASE/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/youtubeAPI/WEB-INF/classes/mappers/classes-mapper.xml]'.

 

필자는 스프링 내에서 브랜치를 오가며 master 브랜치와 jinwoo3 브랜치를 switch to 해주면서 작업을 하다보니 톰캣에 에러가 생겨서 발생한 문제였다.

 

문제 내용을 보면,  mappers/classes-mapper.xml 에 classes-mapper.xml 파일에 내 브랜치에 없는데 자꾸 톰캣이 mapping을 해주려고 해서 발생한 문제였다. 아니 왜 내 브랜치에 없는데 이러는거지?? 했는데 역시나 master 브랜치에 있는것이었다. 그래서 위 주소로 직접 찾아가보았다. 

 

(역시나 master브랜치에 있는 놈이었군... 왠지 모르게 톰캣에 찌꺼기가 남은것 처럼 저게 남아있던거임)

 

 

그래서 검색:

.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps 라고 하니,

https://ninearies.tistory.com/102

 

[에러] Could not delete 경로/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/myweb/storage. May be locked by

에러 메세지 Could not delete 경로/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/myweb/storage. May be locked by another process. 해결 방법 1. Server의 톰캣 우클릭 → 아래와 같은 'C..

ninearies.tistory.com

이 블로그님께서 톰캣을 Servers에서 우클릭-> working directory clean + clean을 해주라고 해서 했더니, 사라짐요.... 

 

그래서 결국 해결함...!

'스프링 에러 모음집' 카테고리의 다른 글

Missing Maven dependencies in Eclipse project  (0) 2022.01.14

+ Recent posts