1

Topic: Spring. Library connection

After adding to the project of library application ceased to start with an error: ERROR [org.apache.catalina.core. ContainerBase. [jboss.web]. [localhost]. [/iB2]] Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener java.lang. NoSuchMethodError: org.springframework.beans.factory.annotation.InjectionMetadata.needsRefresh (Lorg/springframework/beans/factory/annotation/InjectionMetadata;Ljava/lang/Class Z at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata (PersistenceAnnotationBeanPostProcessor.java:389) at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessMergedBeanDefinition (PersistenceAnnotationBeanPostProcessor.java:333) I so understand that it does not accept version Spring. At us 3.2.3. It is necessary to lift? And how to learn what version  it is necessary ?

2

Re: Spring. Library connection

Hello, BlackEric, you wrote: BE> After adding to the project of library application ceased to start with an error: And mvn dependency:tree shows including: [INFO] + - org.springframework:spring-orm:jar:4.3.6.RELEASE:compile It is necessary 4  it turns out? With 3 it will not be got in any way?

3

Re: Spring. Library connection

Hello, BlackEric, you wrote: BE> After adding to the project of library application ceased to start with an error: BE> I so understand that it does not accept version Spring. At us 3.2.3. It is necessary to lift? And how to learn what version  it is necessary ? Yes, it is similar in InjectionMetadata there is no method needsRefresh (InjectionMetadata, Class). Judging by the documentation, for the first time it appears here (3.2.7). Probably, it will be necessary also other dependent libraries / used to "tighten".