title: After H2-Upgrade
body: <p>i did an upgrade of h2-database in my project and now it fails with this exception:</p>
  
  
  
  <pre><code>Caused by: org.springframework.beans.PropertyBatchUpdateException: Failed properties: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [org.h2.Driver]
      at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:121) ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
      at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75) ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1518) ~[spring-beans-4.2.8.RELEASE.jar:4.2.8.RELEASE]
      ... 66 common frames omitted
  </code></pre>
  
  
  
  <p>Here is my spring-context.xml:</p>
  
  
  
  <pre><code>&lt;bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"&gt;
          &lt;property name="driverClassName" value="${db.driver}" /&gt;
          &lt;property name="url" value="${db.url}" /&gt;
          &lt;property name="username" value="${db.username}" /&gt;
          &lt;property name="password" value="${db.password}" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  
  
  <p>And here my jdbc.properties where the spring-context loads the data to initialize my datasource:</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>db.driver=org.h2.Driver
  db.url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1
  db.username=sa
  db.password=
  
  db.memurl=jdbc:h2:mem:test
  </code></pre>
  
  
  
  <p>All works fine with h2-version 1.4.179 but fails with 1.4.196. Used Spring Version is 4.2.8.</p>
  
  <p>I don't get it why it fails... something has change in H2, but i don't know what... anybody an idea?</p>
  
  <p><strong>--update--</strong></p>
  
  <p>Here all dependencies from pom.xml (spring-version is 4.2.8) and this is a common project for all my test dependencies (packaging is pom), it is used by several projects. I use h2-database as in memory database only for testing:</p>
  
  
  
  <pre><code>&lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.testng&lt;/groupId&gt;
              &lt;artifactId&gt;testng&lt;/artifactId&gt;
              &lt;version&gt;6.11&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;artifactId&gt;junit&lt;/artifactId&gt;
                      &lt;groupId&gt;junit&lt;/groupId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.h2database&lt;/groupId&gt;
              &lt;artifactId&gt;h2&lt;/artifactId&gt;
              &lt;version&gt;1.4.196&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework&lt;/groupId&gt;
              &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
              &lt;version&gt;${spring.version}&lt;/version&gt;
              &lt;exclusions&gt;
                  &lt;exclusion&gt;
                      &lt;artifactId&gt;commons-logging&lt;/artifactId&gt;
                      &lt;groupId&gt;commons-logging&lt;/groupId&gt;
                  &lt;/exclusion&gt;
              &lt;/exclusions&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.mockito&lt;/groupId&gt;
              &lt;artifactId&gt;mockito-all&lt;/artifactId&gt;
              &lt;version&gt;1.10.19&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
  </code></pre>