• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFac

 
yamuna tj
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

i am doing small spring application with hibernate. I am getting following exception
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.hibernate.cfg.AnnotationConfiguration]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.cfg.annotations.reflection.EJB3ReflectionManager

please help me
 
Bogdan Baraila
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this all the stacktrace of the error? From the looks of it your are missing a class (probably you are missing a jar or you have diffrent spring/hibernate jar versions)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic