D
D
Denis Verkhoturov2016-08-29 18:01:12
Hibernate
Denis Verkhoturov, 2016-08-29 18:01:12

What is wrong with my spring + hibernate configuration?

Good afternoon, I am getting acquainted with spring + hibernate bundle. Spring starts and processes requests normally, but as soon as I add configurations for hibernate, I get an error:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.event.internalEventListenerProcessor': Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/MethodClassKey

The project code can be viewed here . Problems arise with the applicationContext.xml file when I add everything below line 24 to it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kosarev, 2016-08-29
@leo_scream

Something tells me that you have problems with dependencies (different versions of the components of the same framework). Either bring the dependency versions back to normal, or use Spring BOM or Spring Boot.
Plus, you import the namespace tx version 3.0, when the rest of the versions are 4.3, which is not critical, but also ugly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question