[org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higher
Follow the Stackoverflow question about: Spring/Java error: namespace element 'annotation-config' ... on JDK 1.5 and higher to find the solution for fixing the error: java.lang.IllegalStateException: Context namespace element 'annotation-config' and…