2014/05/02

javax.sql.DataSource 인식 문제로 서비스 오류



org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in ServletContext…[…/ibatis_config.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.jboss.resource.adapter.jdbc.WrapperDataSource] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.jboss.resource.adapter.jdbc.WrapperDataSource] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy found

이하 생략.


이번 케이스의 경우 애플리케이션 클래스로더 영역에 jdbc2_0-stdext.jar 파일이 포함되어 있어서 시스템에서 사용하는 db벤더의 jdbc 드라이버가 인식이 되지 않고 가로채기(?) 상황이 되어버린 것이었다.

문제가 되는 jdbc2_0-stdext.jar 파일을 삭제하니 바로 해결됨.

댓글 없음:

댓글 쓰기