Advertisement
Guest User

Untitled

a guest
Dec 26th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
  2. <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"/>
  3. <property name="url" value="jdbc:oracle:thin:@example.com:1521:t2xxi"/>
  4. <property name="username" value="user"/>
  5. <property name="password" value="12345"/>
  6. </bean>
  7.  
  8. <bean id="departmentJDBCTemplate"
  9. class="DAO.DepartmentDAO">
  10. <property name="dataSource" ref="dataSource"/>
  11. </bean>
  12.  
  13. Exception in thread "main" org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (ORA-01017: invalid username/password; logon denied)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement