An error is reported in the XML file of eclipse. Close XML validation
Eclipse turns off English spell checking and XML validation
To solve the problem, the servlet can run, but the XML file is red
Mode 1:
Windows–> Preferences–> XML –> XML Files –> Validate
Find validate and uncheck build
Mode 2:
Windows–> Preferences–> XML(Wild Web Developer)-> Validate& Resolution
Cancel enable validate
Or change both enable namespaces validate and enable schema based} validate to never
Then click apply and it will be OK
The first one, I don’t know whether it’s my eclipse version or something. I didn’t find that one. The second one can solve this problem. I hope it can help you!!
Read more here: Source link