0
点赞
收藏
分享

微信扫一扫

web.xml 文件报错:cvc-id.3: A field of identity constraint ‘.....


报错内容

在对Dynamic Web Project的web.xml进行配置时,遇到如下错误,大概的翻译如下:“身份约束“ web-common-servlet-name-uniqueness”字段与元素“ web-app”匹配,但该元素没有简单的类型。”

web.xml 文件报错:cvc-id.3: A field of identity constraint ‘....._java

解决办法

web.xml 文件报错:cvc-id.3: A field of identity constraint ‘....._web app_02


将上面 xmlns=“http://java.sun.com/xml/ns/javaee” 中的​​java改为大写​​,具体如下:xmlns=“http://JAVA.sun.com/xml/ns/javaee”,最终报错web.xml文件 错误信息全都没有了,且可以正常运行! 截图如下:

web.xml 文件报错:cvc-id.3: A field of identity constraint ‘....._web app_03



举报

相关推荐

0 条评论