请问 SSH+oracle数据库的时候,报了这里的错误.
<bean id="DataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="oracle.driver.jdbc.OracleDriver">
</property>
<property name="url" value="jdbc:oracle:thin:@192.168.1.100:1521:orcl">
</property>
<property name="username" value="scott"></property>
<property name="password" value="123456"></property>
</bean>
上面是配置信息 谁能解释一下这是为什么?
[color=#FF0000]严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'DataSource' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException [color=#FF0000]1: org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not load JDBC driver class [oracle.driver.jdbc.OracleDriver]; nested exception is java.lang.ClassNotFoundException: oracle.driver.jdbc.OracleDriver
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not load JDBC driver class [oracle.driver.jdbc.OracleDriver]; nested exception is java.lang.ClassNotFoundException: oracle.driver.jdbc.OracleDriver
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not load JDBC driver class [oracle.driver.jdbc.OracleDriver]; nested exception is java.lang.ClassNotFoundException: oracle.driver.jdbc.OracleDriver
Caused by: java.lang.ClassNotFoundException: oracle.driver.jdbc.OracleDriver[/color][/color]