XML(xsd):Failed to read schema document [How to Solve]

 

<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
        xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd" updateCheck="false">

The above bank reported the following errors:

Multiple annotations found at this line:
 - cvc-elt.1: Cannot find the declaration of element 'ehcache'.
 - schema_reference.4: Failed to read schema document 'http://ehcache.org/ehcache.xsd', because 1) could not find the document; 
 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

Solution (introduce xsd locally).

1. Add a new file ehcache.xsd in the project, and fill the file “http://ehcache.org/ehcache.xsd” with the contents of ehcache.xsd in

2、Location: select this xsd file Key type: Schema location
Key:http://ehcache.org/ehcache.xsd

Similar Posts: