I want to connect to the database. I am writing in the xml file:
<bean id="DataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" /> <property name="url" value="jdbc:oracle:thin:@localhost:1521:xe" /> <property name="name" value="system" /> <property name="password" value="1234" /> </bean> To which I get the answer that the class DriverManagerDataSource was not found.
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.jdbc.datasource.DriverManagerDataSource] xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.jdbc.datasource.DriverManagerDataSource
spring-jdbc is loaded.
DriverManagerDataSource. So something is wrong with the dependencies in pom'nik. I think we need to dig into this - SlandShow 6:36 pm