title: Caused by: org.springframework.beans.PropertyBatchUpdateException: Could not load JDBC driver class [oracle.jdbc.driver.OracleDriver]
body: <p>I am trying to cretae a JDBC connection through datasource object with DriverManagerDatasorce.each time i run my appllication am getting </p>
  
  <blockquote>
    <p>Caused by: org.springframework.beans.PropertyBatchUpdateException;
    nested PropertyAccessExceptions (1) are: PropertyAccessException 1:
    org.springframework.beans.MethodInvocationException: Property
    'driverClassName' threw exception; nested exception is
    java.lang.IllegalStateException: Could not load JDBC driver class
    [oracle.jdbc.driver.OracleDriver] exception i have added ojdbc6 jar to
    my classpath eventhough am getting this exception</p>
  </blockquote>
  
  <p>...Any suggests what i have missed.</p>
  
  <p>I also tried with basicDataSource and still got same...Is that i need to arrange any configuration in server in order to get connection.</p>
  
  <p>Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
  PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [oracle.jdbc.driver.OracleDriver]</p>
  
  <h2>Here Is My configuration :</h2>
  
  <pre><code>&lt;bean id="datasource"class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt; 
  &lt;property name="driverClassName" value="oracle.jdbc.driver.OracleDriver"&gt;&lt;/property&gt; 
  &lt;property name="url" value="jdbc:oracle:thin:localhost:1521:orcl"&gt;&lt;/property&gt; &lt;property name="username" value="SCOTT"&gt;&lt;/property&gt;
   &lt;property name="password" value="34268"&gt;&lt;/property&gt; 
  &lt;/bean&gt;
  </code></pre>