Parse Fatal Error at line 4 column 43: The attribute "xmlns" has been specified for element "Web-app".
Org.xml.sax.SAXParseException; Systemid:jndi:/localhost/party68/web-inf/web.xml; Linenumber:4; columnnumber:43; The attribute "xmlns" has been specified for the element "Web-app".
Somehow, I suddenly reported such a mistake. has not found the reason. Always remind Web. XML of the error. A copy of Web. Xml from another project is not the result. It's not a good way to download Tomcat again.
Running other projects is normal. It always feels like a problem with the code, so go to the Web. xml file.
The XML tag reference is repeated. Remove the following red code, rerun, ok! In fact, the error prompt is very obvious.
<web-app xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xmlns= "Http://java.sun.com/xml/ns/javaee" xmlns:web= "Http://java.sun.com/xml/ns/javaee"
xmlns= "http://Java. Sun.com/xml/ns/javaee"
xsi:schemalocation= "Http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
Id= "webapp_id" version= "2.5" >
Parse Fatal Error at line 4 column 43: The attribute "xmlns" has been specified for element "Web-app".