Exception handling for error in XML file in eclipse

Source: Internet
Author: User
Tags mongodb java web


An XSD validation failure message for an XML file frequently appears in a recent Java Web project, and the exception is as follows:

?

1 2 3 4 5 6 7 multiple annotations found at  this  Line:     - referenced  file contains errors  (http://www.springframework.org/schema/beans/spring-beans-3.0.xsd).  For more information, right click        on the  message in the Problems View and select  "Show details ..."      - referenced file contains errors  (http://www.springframework.org/ schema/tool/spring-tool-3.0.xsd) . for more information, right click on        The message in the problems view and select   "Show details ..."     - referenced file contains errors   (http://www.springframework.org/schema/context/spring-context-3.0.xsd) . for more  Information, right        click on the message in the problems  view and select  "Show details ..."

Expand exception Information:?

1 The errors below were detected when validating the file "Spring-beans-3.0.xsd" via the file Applicationcontext-mongodb  . xml ".  In most cases these errors can is detected by validating "spring-beans-3.0.xsd" directly. However It is possible that errors would only occur when spring-beans-3.0. XSD was validated in the context of Applicationc Ontext-mongodb.xml.


The workaround is to remove the version number of the XSD file in the configuration file.

Original document:?

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