您的位置:首页 > 运维架构 > Tomcat

jdk 1.8 与 spring+springmvc 3.2 .jar 启动tomcat报错

2016-11-15 17:20 1241 查看
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener

org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/F:/apache-tomcat-9.0.0.M8/webapps/qmis_web/WEB-INF/lib/c3p0-0.9.1.2.jar!/com/mchange/v1/xml/DomParseUtils$1.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn’t supported yet: class path resource [org/w3c/dom/NodeList.class]; nested exception is java.lang.IllegalArgumentException

at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:290)

at o

ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn’t supported yet: class path resource [org/w3c/dom/NodeList.class]; nested exception is java.lang.IllegalArgumentException

at org.springframework.core.type.classreading.SimpleMetadataRe

解决方案

降低 jdk 版本 到 1.7

测试了不同的解决办法 只有 这个 可以解决问题 ,因为 从新升级spring的版本 需要同时升级其相关 jar 的版本!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐