ssh项目集成,tomcat启动时报的错

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [beans.xml]; nested exception is java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher

Caused by: java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher

使用的是什么版本的JDK?是不是用的版本低了?最好改成1.7的吧。

Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher
Context命名空间element 'component-scan' 和它的解析器类[ org.springframework.context.annotation.ComponentScanBeanDefinitionParser ]只能在JDK 1.5及更高版本

web.xml中加监听器没




org.springframework.web.context.ContextLoaderListener



图片说明