SPRINGMVC Project Start error nested exception is org.springframework.core.NestedIOException

Source: Internet
Author: User

Learn SPRINGMVC when the demo start error:

Org.springframework.beans.factory.BeanDefinitionStoreException:Failed to read candidate componentclass: File [/users/zhanglingxiang/ideaprojects/springmvc_hellow/out/artifacts/springmvc_hellow_war_exploded/web-inf/ Classes/com/model/hellocontroller.class]; Nested exception is Org.springframework.core.NestedIOException:ASM Classreader failed to parseclassFile-probably due to aNewJavaclassFile version that isn ' t supported Yet:file [/users/zhanglingxiang/ideaprojects/springmvc_hellow/out/artifacts/ Springmvc_hellow_war_exploded/web-inf/classes/com/model/hellocontroller.class];    Nested exception is java.lang.IllegalArgumentException Org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents ( classpathscanningcandidatecomponentprovider.java:290) Org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan ( Classpathbeandefinitionscanner.java:242) Org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse ( Componentscanbeandefinitionparser.java:84) Org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse (Namespacehandlersupport.java:73) Org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement ( Beandefinitionparserdelegate.java:1438) Org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement ( Beandefinitionparserdelegate.java:1428) Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions ( Defaultbeandefinitiondocumentreader.java:185) Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions ( Defaultbeandefinitiondocumentreader.java:139) Org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions ( Defaultbeandefinitiondocumentreader.java:108) Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions ( Xmlbeandefinitionreader.java:493) Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions ( Xmlbeandefinitionreader.java:390) Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( Xmlbeandefinitionreader.java:334) Org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions ( Xmlbeandefinitionreader.java:302)

This is a Java version of the problem.

Look for the next Mac Java installation directory, command:

/usr/libexec/java_home-v

Modify the project JDK version and the Intellig IDE inside Tomcat's JDK configuration, changed to 1.7, still not.

Feel that after switching the JDK should be recompiled, so recompile, success!

SPRINGMVC Project Start error nested exception is org.springframework.core.NestedIOException

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.