Skip to content
Advertisement

java.lang.NoSuchMethodError: org.springframework.core.annotation.AnnotationUtils.isInJavaLangAnnotationPackage(Ljava/lang/annotation/Annotation;)Z

Am very new to spring and JUnit. Am trying to run a simple JUnit test case for spring service class, but it fails and I get this exception.I didnt write any test yet, but trying to run through before implementing. Using tomcat v7.0. And I dont think have any spring conflicting versions. Please help.

JavaScript

Where else do i need to check, if there are any conflicting spring jars in my project? And my pom.xml file is:

JavaScript

Advertisement

Answer

That method appeared in that commit, which seems to be 4.0.3+. Just update spring dependencies to the latest version.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement