title: Getting org/springframework/dao/QueryTimeoutException after upgrading to Spring 4 and hibernate 4.3.5
body: <p>I recently upgraded by SPRING + Hibernate project to Spring 4.1.6 and Hibernate to Hibernate 4.3.5 .But doing so I am getting this exception</p>
  
  <pre><code>Error creating bean with name 'transactionManager' defined in class path resource [fileName]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/dao/QueryTimeoutException
  </code></pre>
  
  <p>This is the POM file with Hibernated dependencies and I am using PostgreSQL as database</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
          &lt;version&gt;4.3.5.Final&lt;/version&gt;
    &lt;/dependency&gt; 
  
    &lt;dependency&gt;
          &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
          &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
          &lt;version&gt;5.0.2.Final&lt;/version&gt;
  &lt;/dependency&gt;
  
    &lt;dependency&gt;
          &lt;groupId&gt;postgresql&lt;/groupId&gt;
          &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
          &lt;version&gt;9.1-901.jdbc4&lt;/version&gt;
    &lt;/dependency&gt;
  </code></pre>
  
  <p>This is the configuration in fileName</p>
  
  <pre><code>&lt;bean id = "transactionManager" class="org.springframework.orm.hibernate4.HibernateTransactionManager" lazy-init="true"&gt;
      &lt;property name="sessionFactory" ref="sessionFactory"/&gt;
      &lt;/bean&gt;
  
      &lt;tx:advice id="txAdvice" transaction-manager="transactionManager"&gt;
                  &lt;tx:attributes&gt;
                      &lt;tx:method name="get*" read-only="true" propagation="REQUIRED"/&gt;
                      &lt;tx:method name="*" propagation="REQUIRED"/&gt;
              &lt;/tx:attributes&gt;
      &lt;/tx:advice&gt;
  </code></pre>
  
  <p>Any help to resolve this problem will be truly appreciable.</p>