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