title: Spring MVC and Hibernate configurations
body: <p>I have been struggling with this problem for a few days now. I am building a spring mvc hibernate framework.</p>
  
  <p>I have the following configuration file</p>
  
  <p>Please follow this link for the config file : <a href="http://dl.dropbox.com/u/56970386/config.txt" rel="nofollow">ConfigurationFile</a></p>
  
  <p>I am receiving the following error:</p>
  
  <blockquote>
    <p>org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.springframework.orm.hibernate4.annotation.AnnotationSessionFactoryBean] for bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/hibernateDataAccessContext.xml]; nested exception is java.lang.ClassNotFoundException: org.springframework.orm.hibernate4.annotation.AnnotationSessionFactoryBean</p>
  </blockquote>
  
  <p>Root cause:</p>
  
  <blockquote>
    <p>Caused by: java.lang.ClassNotFoundException: org.springframework.orm.hibernate4.annotation.AnnotationSessionFactoryBean</p>
  </blockquote>
  
  <p>Yes, I do have the spring-aop jar included in the class path. I would appreciate any help. My searches have not been fruitful.</p>
  
  <hr>
  
  <p>Edit:</p>
  
  <p>Thank you. That issue is solved, however my initial intention of this question was to solve the following error:</p>
  
  <blockquote>
    <p>org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0' defined in ServletContext resource [/WEB-INF/hibernateDataAccessContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice</p>
  </blockquote>
  
  <p>This is why I mentioned that I already have spring-aop in the class path.</p>