java - cannot load the oracle driver -


hey guys 1 more question following informations

tell me in comments if more info needed

info: destroying singletons in org.springframework.beans.factory.support.defaultlistablebeanfactory@7471dc3d: defining beans [datasource,studentjdbctemplate]; root of factory hierarchy exception in thread "main" org.springframework.beans.factory.beancreationexception: error creating bean name 'studentjdbctemplate' defined in class path resource [pack1/config.xml]: error setting property values; nested exception org.springframework.beans.propertybatchupdateexception; nested propertyaccessexceptions (1) are: propertyaccessexception 1: org.springframework.beans.methodinvocationexception: property 'datasource' threw exception; nested exception java.lang.illegalargumentexception: property 'datasource' required

<?xml version="1.0" encoding="utf-8"?> <beans xmlns="http://www.springframework.org/schema/beans"  xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"   xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd "> <bean id="datasource" class="org.springframework.jdbc.datasource.drivermanagerdatasource">  <property name="driverclassname" value="oracle.jdbc.driver.oracledriver"></property>     <property name="password" value="trg"></property>     <property name="url" value="jdbc:oracle:thin:@172.23.3.132:1521:train"></property>     <property name="username" value="trg12"></property>     <!-- <property name="schema" value="train"></property> -->  </bean>   <bean id="studentjdbctemplate" class="pack1.studentjdbctemplate">   <property name="datasource" ref="datasource" />  </bean> 

this bean m using database connection ...

from exception seems class pack1.studentjdbctemplate not have datasource property.

are sure class extends jdbctemplate or other class has datasource property?


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -