eclipse(2)------Attribute "xmlns" was already specified for element "web-app"
来源:互联网 发布:大同集宁之战 知乎 编辑:程序博客网 时间:2024/06/07 19:07
给web项目重命名后,web.xml中出现了如下提示:
Attribute "xmlns" was already specified for element "web-app"
从英文的意思告诉我们xmlns已经存在,仔细看了下配置:
web.xml头部内容如下
<?xml version="1.0" encoding="UTF-8"?>
<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/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
确实是xmlns重复了,删掉其中一个,问题解决了。
导致这个问题的原因就是在修改项目名称的时候,eclipse为项目
重新又指定了一份 xmlns="http://java.sun.com/xml/ns/javaee",
但是之前的它并没有去删掉,人工删掉就ok了。
阅读全文
2 0
- eclipse(2)------Attribute "xmlns" was already specified for element "web-app"
- : Attribute "xmlns" was already specified for element "web-app".
- Attribute "xmlns" was already specified for element "web-app".
- : Attribute "xmlns" was already specified for element "web-app".
- eclipse重命名web项目名称,报错:Attribute "xmlns" was already specified for element "web-app"
- eclipse下修改项目名称web.xml出错Attribute "xmlns" was already specified for element "web-app"
- eclipse下由于修改了项目名称web.xml出错 Attribute "xmlns" was already specified for element "web-app"
- Ecliplse 重命名后web.xml 报错Attribute "xmlns" was already specified for element "web-app".
- web.xml报错“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 path was already specified for element action
- attribute path was already specified for element action
- Attribute "class" was already specified for element "bean".
- spring mvc web.xml 配置出现 Attribute "xmlns:xsi" must be declared for element type "web-app"
- web.xml中的web-app中出现Attribute "xsi:schemaLocation" must be declared for element type "web-app".
- Caused by: org.xml.sax.SAXParseException: Attribute "xmlns" must be declared for element type "beans
- cvc-complex-type.4: Attribute ‘version’ must appear on element ‘web-app’.
- TCP长连接,短链接,双工,单工
- Python入门教程(更新中,日期:20170710)
- mariaDB语句详解
- 瀑布流分页数据去重问题
- 单点登录原理与简单实现
- eclipse(2)------Attribute "xmlns" was already specified for element "web-app"
- LeetCode (Binary Tree Zigzag Level Order Traversal)
- 史上最简单的 MySQL 教程(二十一)「数据的高级操作 之 蠕虫复制」
- Linux C 整理-1
- js 选项卡切换
- SpringMvc Servlet 继承结构
- linux之文件映射mmap/munmap
- PyPy和CPython的不同点
- 修改Maven 3.2.5默认的编译级别