• eclipse中web.xml报:The content of element type "web-app" must match "(icon?,display- name?,


     

    报错信息: 

    Description Resource Path Location Type
    The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". web.xml /hotel-admin/src/main/webapp/WEB-INF line 5 XML Problem

    翻译过来是:

    说明资源路径位置类型

    元素类型“web app”的内容必须匹配“(icon?,显示名称?,描述?,可分配?,上下文参数*,筛选器*,筛选器映射*,侦听器*,servlet*,servlet映射*,会话配置?,mime映射*,欢迎文件列表?,错误页*,标记库*,资源环境参考*,资源参考*,安全约束*,登录配置?,安全角色*,环境条目*,ejb引用*,ejb本地引用*)”

    意思大概是配置要按规定的顺序

    解决方式是删掉头部

    <!DOCTYPE web-app PUBLIC
    "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd" >

  • 相关阅读:
    CDM中添加Hive服务时Gateway是什么?
    ClouderaManager中Event Server报No such file or directory
    tail -f 与 tail -F的区别
    Zookeeper Canary
    Spark中hashshuffle与sortshuffle
    Spark streaming的执行流程
    Spark streaming的正确使用。。
    spark优化之并行度
    github 使用
    css 通用兄弟选择器( ~ )
  • 原文地址:https://www.cnblogs.com/xpybsh/p/14253088.html
Copyright © 2020-2023  润新知