본문 바로가기
Exception

ibatis 경로 에러 (경로 수정하기)

by ZEROMI 2021. 11. 26.
728x90

DB연결을 위해 DB정보를 넣은 xml 파일에서 에러가 났다.

 

이유를 찾아보니 ibatis 사이트가 폐쇄되며 dtd 경로가 바뀌었다.

소스에서 정의되어 있는 경로를 찾아 모두 수정하면 에러가 사라지고 정상 작동한다.

 

Element type "dataSource" must be declared

Element type "property" must be declared

Element type "settings" must be declared

Element type "sqlMapConfig" must be declared

Element type "transactionManager" must be declared

 

기존경로 : http://www.ibatis.com/dtd

변경경로 : http://www.ibatis.apache.org/dtd

 

 

 

--> 새로운 에러가 생겼다.  

Error while downloading 'http://www.ibatis.apache.org/dtd/sql-map-config-2.dtd' to

 

변경한 docType 에 수정해야할 것이 하나 더 있다.

 

기존
변경

이렇게 변경하면 된다.

 


이후 추가 발생하여 아래와 같이 조치.

https://zeromi.tistory.com/89

 

Element type "sqlMap" must be declared.

옛날 소스에서 정의되지 않은 형식이라며 에러가 우르르 쏟아져 나온다. 지난 번에도 겪었듯이 아이바티스 사이트 폐쇄로 인한 에러다. https://zeromi.tistory.com/84 ibatis 경로 에러 (경로 수정하기) DB

zeromi.tistory.com

 

728x90