已经为元素 "web-app" 指定属性 "xmlns"
2017-11-28 19:18
375 查看
已经为元素 "web-app" 指定属性 "xmlns"
原创 2017年09月07日15:29:49
标签:
java
580
项目过程中难免会碰到奇葩的事情,本身一个项目运行好好的,突然有一天,报了个错,已经为元素 “web-app” 指定属性 “xmlns”。
找来找去,找不到问题所在,最后发现问题很简单,却折磨死人。
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="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">1
2
3
4
5
这个文件里的
xmlns="http://java.sun.com/xml/ns/javaee"1
重复了,删掉就可以了。
关于重复的原因不知道呢,可能做了什么操作引起的,不过知道怎么解决就行了。
相关文章推荐
- 严重: Parse Fatal Error at line 2 column 243: 已经为元素 "web-app" 指定属性 "xmlns"。 org.xml.sax.SAXParseExcept
- 已经为元素 "web-app" 指定属性 "xmlns"
- Parse Fatal Error at line 4 column 43: 已经为元素 "web-app" 指定属性 "xmlns"。
- web.xml; lineNumber: 2; columnNumber: 193; 已经为元素 "web-app" 指定属性 "xmlns"。
- Parse Fatal Error at line 5 column 89: 已经为元素 "web-app" 指定属性 "xmlns"。
- Parse Fatal Error at line 4 column 43: 已经为元素 "web-app" 指定属性 "xmlns"。
- Parse Fatal Error at line 4 column 43: 已经为元素 "web-app" 指定属性 "xmlns"。
- Parse Fatal Error at line 4 column 43: 已经为元素 "web-app" 指定属性 "xmlns"。
- Parse Fatal Error at line 4 column 43 已经为元素 web-app 指定属性 xmlns。
- websphere6.1部署SystemErr.log必须为元素类型“web-app”声明属性“ve
- websphere6.1部署SystemErr.log必须为元素类型“web-app”声明属性“ve
- 解决websphere6.1必须为元素类型web-app声明属性version
- eclipse下由于修改了项目名称web.xml出错 Attribute "xmlns" was already specified for element "web-app"
- web.xml报错“Attribute "xmlns" was already specified for element "web-app".”
- spring mvc web.xml 配置出现 Attribute "xmlns:xsi" must be declared for element type "web-app"
- Ecliplse 重命名后web.xml 报错Attribute "xmlns" was already specified for element "web-app".
- eclipse重命名web项目名称,报错:Attribute "xmlns" was already specified for element "web-app"
- : Attribute "xmlns" was already specified for element "web-app".
- Eclipse中Web项目修改名称后出现ttribute "xmlns" was 错误already specified for element "web-app"
- [报错]Attribute "xmlns:xsi" must be declared for element type "web-app"