Skip to main content
1 de 3

Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]:

Estoy desarrollando una aplicación escritorio Java SE con Maven Netbeans, Hibernate, Spring Framework para IoC, cuando compilo me devuelve este error, al parecer no logra construir el Bean sessionFactory declarado dentro de mi AplicationContext.xml,... agradeceria ayuda, Gracias.

**** CONFIGURACION DEL SESSION FACTORY EN APLICATIONCONTEXT****

org.hibernate.dialect.MySQLDialect true true datos/hibernate/orm/MiTabla.hbm.xml

COPIO EL MENSAJE DE ERROR*********

ADVERTENCIA: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Map; Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.engine.spi.SessionFactoryImplementor.getProperties()Ljava/util/Map;