SetSerializationId no such method error

I try to run my project, but this error hits me every time:

org.springframework.web.context.ContextLoaderListener java.lang.NoSuchMethodError: org.springframework.beans.factory.support.DefaultListableBeanFactory.setSerializationId(Ljava/lang/String;)V at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:128) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276) 

This is my spring application context:

http://sharetext.org/2E7

What could be the reason for this? Any help would be appreciated.

Thanks in advance.

+4
source share
1 answer

The setSerializationId method setSerializationId present in the DefaultListableBeanFactory class from spring 3.0, but not in the same class from spring 2.5. I think you are working with mixing two versions of spring. It seems that you are using a library that depends on the old version of spring, for example, possibly spring -web. I suggest you check all the banks in your class path.

+12
source

Source: https://habr.com/ru/post/1347614/


All Articles