Xsd verification in eclipse: cvc-complex-type error with xsd

Source: Internet
Author: User

A custom label is developed based on spring. The function test is normal and a compilation error is prompted in myeclipse:

Multiple annotations found at this line:
-Cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'FW: annotation-handler '.
-Schema_reference.4: Failed to read schema document 'HTTP: // www.300.cn/schema/annotation-handler.xsd', because 1) cocould not find
Document; 2) the document cocould not be read; 3) the root element of the document is not <xsd: schema>.
This problem also occurred when modifying the struts configuration file. This problem may occur when some third-party jar files are introduced.
Although it does not affect usage, it seems annoying. I found a solution.
Menu --> windows --> prefreneces find the XML Catalog and add the xsd file in User Specified Entries
Note the following two points:
1. Set Key type to Schema location;
2. Set the virtual xsd address for the key, that is
Xsi: schemaLocation = "http://www.springframework.org/schema/task
Http://www.springframework.org/schema/task/spring-task-3.0.xsd"
The name of the name.


Author: zyskm

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.