Java EE: web.xml Validation Error [message #1840501] |
Fri, 16 April 2021 15:51 |
John Smith Messages: 3 Registered: April 2021 |
Junior Member |
|
|
Hello,
How do I get rid of this error?
I'm having an issue where Eclipse fails to validate the standard web.xml document for Java EE. It's weird, because just modifying the file and saving fixes the error. However restarting Eclipse brings back the issue.
EDIT: The web.xml document is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="4.0"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
<!-- ... -->
</web-app>
On the <web-app ...> tag, I get the error : "There is '1' error in 'javaee_7.xsd'" There's also a warning on the URLs listed on xsi:schemaLocation:
"schema_reference.4: Failed to read schema document 'platform:/plugin/org.eclipse.xsd/cache/www.w3.org/
2001/xml.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>."
Eclipse IDE for Enterprise Java and Web Developers (includes Incubating components)
Version: 2021-03 (4.19.0)
Build id: 20210312-0638
OS: Windows 10, v.10.0, x86_64 / win32
Java version: 15.0.2
Configuration Log attached. How do I get rid of this error? Any help is appreciated!
[Updated on: Sat, 17 April 2021 14:00] Report message to a moderator
|
|
|
|
Re: Java EE: web.xml Validation Error [message #1840520 is a reply to message #1840515] |
Sat, 17 April 2021 13:58 |
John Smith Messages: 3 Registered: April 2021 |
Junior Member |
|
|
Sorry, I had to make the first post without any links, as the forum software doesn't allow new users to post links in their first post. I'm editing the OP with the details now.
EDIT: The web.xml document is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="4.0"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
<!-- ... -->
</web-app>
On the <web-app ...> tag, I get the error : "There is '1' error in 'javaee_7.xsd'" There's also a warning on the URLs listed on xsi:schemaLocation:
"schema_reference.4: Failed to read schema document 'platform:/plugin/org.eclipse.xsd/cache/www.w3.org/
2001/xml.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>."
[Updated on: Sat, 17 April 2021 14:00] Report message to a moderator
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01782 seconds