Eclipse的项目重命名web.xml报错Resource Path Location Type Attribute "xmlns" was already specifie

问题描述:

Description Resource Path Location Type

Attribute "xmlns" was already specified for element "web-app". web.xml /ws_ah/src/main/webapp/WEB-INF line 2 XML Problem

由于项目的重命名,出现了xmlns重复赋值,这可能是eclipse自己设置的一种方式,重新为项目匹配合适的配置

<?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_3_0.xsd" version="3.0">

删除其中一个就好!

猜你喜欢

转载自blog.csdn.net/u011498933/article/details/79880960