This error occurs when SpringMVC integrates DWR Multiple annotations found at this line:-cvc-complex-type.2.4.c

Source: Internet
Author: User

The following error occurs when SpringMVC integrates DWR over the past few days:

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 'dwr: annotation-config '.
-Schema_reference.4: Failed to read schema document 'HTTP: // www.directwebremoting.org/schema/spring-dwr/spring-dwr-3.0.xsd', because 1)
Cocould not find the document; 2) the document cocould not be read; 3) the root element of the document is not .

I found a lot of answers on the Internet and did not solve the problem. First, we will upload a picture:



After a sleep, I thought about this problem again. The root cause of this error is that in the case of Internet connection, I cannot find the desired resource at http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd. So I copied the slave.

So I typed http://www.directwebremoting.org/schemaon on the address bar, but it was still a failure and depressing! I'm typing http://directwebremoting.org/schemaand missing three WWWS, as shown in the following figure:


Finally, find the desired:




Then change to http://directwebremoting.org/schema/spring-dwr/spring-dwr-3.0.xsd in xml

No error is displayed, even when...

It was speechless, but it finally solved the problem that had been plagued for many days.



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.