Java EE: web.xml Validation Error [message #1840501] |
Fri, 16 April 2021 11:51  |
Eclipse User |
|
|
|
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 10:00] by Moderator
|
|
|
|
|
|
|
|
Re: Java EE: web.xml Validation Error [message #1847310 is a reply to message #1840531] |
Fri, 22 October 2021 06:43  |
Eclipse User |
|
|
|
I tried uninstall Wild Web Developer, the error keep ocurring. If you edit the faces-config.xml the error fades away. When restart the IDE, the error return.
To reproduce:
- install eclipse 2021-09 for javaee. Create web application, include jsf faces.
|
|
|
Powered by
FUDForum. Page generated in 0.53185 seconds