Junit tests do not work with NoSuchMethodError BridgeMethodResolver.isVisibilityBridgeMethodPair

I updated the maven project to use Spring 3.0.7 (from 3.0.5). Now all my junit tests that use

@RunWith(SpringJUnit4ClassRunner.class)

there is no annotation (with the exception below), but only when starting from Eclipse. I am running "Eclipse Indigo Service Release 2". Everything passes when I start the Linux console.

Has anyone come across this before?

java.lang.NoSuchMethodError: org.springframework.core.BridgeMethodResolver.isVisibilityBridgeMethodPair(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)Z
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.buildAutowiringMetadata(AutowiredAnnotationBeanPostProcessor.java:346)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.findAutowiringMetadata(AutowiredAnnotationBeanPostProcessor.java:317)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(AutowiredAnnotationBeanPostProcessor.java:216)
at  
etc & so forth...
+3
source share
1 answer

Solved - and it's not about having both 3.0.5 and 3.0.7 JARs on the way to classes. I got a key from this question: Error loading Jar file with Tomcat 7, Spring 3 and Camel 2.9.1

, Eclipse , jar Spring 3.0.7, , (3.0.5). , Spring Maven . $M2_REPO/com/spring...../3.0.5 jar.

+2

All Articles