S
S
skver912017-02-27 19:29:24
Java
skver91, 2017-02-27 19:29:24

I can't figure out what's wrong with the spring-core+hibernate project?

Intellij idea swears that: " Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/database/Hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer] ". Example taken from this site www.mkyong.com/spring/maven-spring-hibernate-mysql...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cyril, 2017-02-27
@skver91

Here is the answer to your question: stackoverflow.com/questions/21951895/org-hibernate...
Add the dependency to pom.xml:

<dependency>
    <groupId>javassist</groupId>
    <artifactId>javassist</artifactId>
    <version>3.12.1.GA</version>
</dependency>

P
parkito, 2017-02-27
@parkito

The sample project is very old. Perhaps your database version is incompatible with the specified Hibernate version. Try updating your Hibernate version.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question