title: java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;
body: <pre><code>Error creating bean with name 'sessionFactory' defined in class path resource [DaoContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.addAnnotatedClass(Ljava/lang/Class;)Lorg/hibernate/cfg/Configuration;
  </code></pre>
  
  <p>Followings are my hibernate and spring jars: </p>
  
  <blockquote>
    <ol>
    <li>hibernate-3.5.0-Final </li>
    <li>hibernate-annotations-3.5.0-Final</li>
    <li>hibernate-entitymanager-3.5.0-Final</li>
    <li>spring version: 4.1.6</li>
    <li>spring-security version: 4.0.0</li>
    </ol>
  </blockquote>