Chanho_Park

Driver net.sf.log4jdbc.sql.jdbcapi 에러 본문

Spring/Error

Driver net.sf.log4jdbc.sql.jdbcapi 에러

Chanho_Park 2022. 10. 28. 10:01
728x90

이러한 에러가 발생

 

Driver net.sf.log4jdbc.sql.jdbcapi

INFO : org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization started
INFO : org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Fri Oct 28 09:40:52 KST 2022]; root of context hierarchy
INFO : org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/spring/root-context.xml]
INFO : org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
WARN : org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Constructor threw exception; nested exception is java.lang.RuntimeException: Driver net.sf.log4jdbc.sql.jdbcapi.DriverSpy claims to not accept jdbcUrl, jdbc:log4jdbc:oracle:thin:@localhost:1521:orcl

 

 

[해결방법]

 

해당 프로젝트 오른쪽 버튼 -> Properties -> Java Build Path

Java Build Path 에 ojdbc8 이 있는 지 확인 없으면 Add

 

 

 

&

 

 

Deployment Assembly 에서 ojdbc8 있는 지 확인

 

없으면 Add  -> Java Build Path Entries -> ojdbc8 추가 -> apply

 

 

728x90

'Spring > Error' 카테고리의 다른 글

[spring] run on server 사라짐  (0) 2023.01.07
[Spring] Mybatis xml 작성시  (0) 2022.11.10
[Spring] Spring No mapping found [중요]!!!!!!!  (0) 2022.11.07
[Spring] 프로젝트 run 시 Tomcat 에러  (0) 2022.11.07