Eclipse XML Compilation errors referenced file contains errors-spring-beans-4.0.xsd__eclipse error

Source: Internet
Author: User
Tags mongodb postgresql

In eclipse, sometimes in an XML file, especially in a spring-related configuration file, there are compile errors that do not affect the normal operation of the program, such as:

Referenced file contains errors (

You can resolve this compilation error by following these steps:

1. The version of spring is changed, but the Eclipse compiler still uses the previously cached spring-beans-**.xsd file. The reason is

For the Eclipse compiler, there is a cache that caches these profiles, so that the validation will tell you that the version is not uniform.

The workaround is to empty the files and force eclipse to reload the files.

1) Preferences-> General-> Network Connections Cache

Select the response file ill Click Delete or click Delete all.

2) If it is Maven project, right click on the project and select Maven, select Update Project.

3) If both of these steps are not working, you can close project and reopen Force Eclipse for compilation.

2. The current version of the spring version and configuration file are configured differently, causing files such as XSD to not be loaded correctly and changed to current versions.

If not successful, repeat above 2) 3) two steps.

3. When using spring, use more than one configuration file, so the configuration in the header must be unified.

If not successful, repeat above 2) 3) two steps.

Alibaba Cloud Hot Products

Elastic Compute Service (ECS) Dedicated Host (DDH) ApsaraDB RDS for MySQL (RDS) ApsaraDB for PolarDB(PolarDB) AnalyticDB for PostgreSQL (ADB for PG)
AnalyticDB for MySQL(ADB for MySQL) Data Transmission Service (DTS) Server Load Balancer (SLB) Global Accelerator (GA) Cloud Enterprise Network (CEN)
Object Storage Service (OSS) Content Delivery Network (CDN) Short Message Service (SMS) Container Service for Kubernetes (ACK) Data Lake Analytics (DLA)

ApsaraDB for Redis (Redis)

ApsaraDB for MongoDB (MongoDB) NAT Gateway VPN Gateway Cloud Firewall
Anti-DDoS Web Application Firewall (WAF) Log Service DataWorks MaxCompute
Elastic MapReduce (EMR) Elasticsearch

Alibaba Cloud Free Trail

Related Article

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: 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.