About the pit that the eclipse for Java EE version encounters (Context initialization failed)

Source: Internet
Author: User

These days, I copied the source of the video I watched online to eclipse, and then I used the eclipse-jee-neon-m4a-win32-x86_64 version of Eclipse, because it was a collection of web development plugins, who knew found that he needed to run under the Java8 version, and later on to download the installation java8, who knew everything was ready and found that my project could not run and had been re-reported

Severity: Context initialization failed
Java.lang.IllegalArgumentException
At org.springframework.asm.classreader.<init> (Unknown Source)
At org.springframework.asm.classreader.<init> (Unknown Source)
At org.springframework.asm.classreader.<init> (Unknown Source)
At Org.springframework.core.type.classreading.simplemetadatareader.<init> (SimpleMetadataReader.java:52)
At Org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader ( SIMPLEMETADATAREADERFACTORY.JAVA:80)
At Org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader ( CACHINGMETADATAREADERFACTORY.JAVA:101)
At Org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader ( simplemetadatareaderfactory.java:76)
At Org.springframework.context.annotation.ConfigurationClassParser.getImports (configurationclassparser.java:298 )
At Org.springframework.context.annotation.ConfigurationClassParser.getImports (configurationclassparser.java:300 )
At Org.springframework.context.annotation.ConfigurationClassParser.getImports (configurationclassparser.java:300 )

。。。。

This mistake, I've been searching the internet, and I found the answer.

http://stackoverflow.com/questions/24128045/ Spring-context-initialization-failed-with-java-lang-illegalargumentexception-whi

Later I learned that this project was due to the spring framework, but if the framework is to be developed under JAVA8, it will have to use more than spring 4.0, otherwise it would be an error.

So the solution is either to change all of the spring jar packages in your project to more than 4.0, or to replace the eclipse version and compile the running project with JAVA7 and the following versions

About the pit that the eclipse for Java EE version encounters (Context initialization failed)

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.