解决:The content of element type "web-app" must match "(icon?display

http://www.educity.cn/wenda/126463.html

解决:The content of element type "web-app" must match "(icon ,display-

  错误: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*)".
- No grammar constraints (DTD or XML schema) detected for the document.

  web.xml头部配置:

  < xml version="1.0" encoding="UTF-8" >
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "">
<web-app>

  原因:文档内容标签顺序不符合web-app_2_3.dtd规范

  解决方案

  1:严格按照提示上的顺序排列

  2:删除<!DOCTYPE 。。。。这段内容

时间: 2024-10-13 03:39:28

解决:The content of element type "web-app" must match "(icon?display的相关文章

web.xml中&lt;web-app&gt;报错了--The content of element type &quot;web-app&quot; must match

web.xml中<web-app>报错了--The content of element type "web-app" must match.真是活见鬼! 查完资料后发现,原来web-app_2_3.dtd规范有规定,里面配置的内容要按照规定的顺序来,如下: (icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,se

web.xml中&lt;web-app&gt;提示The content of element type &quot;web-app&quot; must match &quot;(icon?,display- name?,description?,distributable?,

错误:配置web.xml时,出现红色叉叉,提示 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-

The content of element type &quot;configuration&quot; must match &quot;(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?...

今天在mybaties配置文件中碰到这样的一个问题:The content of element type "configuration" must match 解决如下:properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,plugins?,environments?,mappers? 按以上提示的顺序写标签.

The content of element type &quot;package&quot; must match &quot;(result-types?,interceptors?...

错误:“The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default-action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)". ” 原因:package里元素必须按照一定的顺序排列: result

hibernate配置文件 The content of element type &quot;class&quot; must match

hibernate映射文件hbm.xml出错,错误信息如下: The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,comment?,tuplizer*,(id|composite-id),discriminator?,natural-id?, (version|timestamp)?,(property|many-to-one|one-to-one|comp

【转】The content of element type &quot;configuration&quot; must match &quot;(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?...

[转]The content of element type "configuration" must match "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?... <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE configuration PUBLIC "-//mybat

【原创】mybatis配置文件报错:The content of element type &quot;configuration&quot; must match &quot;(properties&gt;settings&gt;typeAliases&gt;typeHa...

最近使用mybatis,在mybatis的xml配置文件中总是会提示错误 The content of element type "configuration" must match "(properties>settings>typeAliases>typeHandlers>objectFactory>objectWrapperFactory>plugins>environments>mappers?)". 后来发现

The content of element type &quot;context&quot; must match &quot;(property*,plugin*,commentGenerator?

最近项目用SSM框架,在利用mybatis generator反向生成数据库对应的model实体时,报如下错误: The content of element type "context" must match "(property*,plugin*,commentGenerator?,jdbcConnection,javaTypeResolver?,javaModelGenerator,sqlMapGenerator?,javaClientGenerator?,table+

The content of element type &quot;beans&quot; must match &quot;(description?,(import|alias|bean)*)

The content of element type "beans" must match "(description?,(import|alias|bean)*) ------------------------------------------------- 解决方案: 版本问题,xml修改成这样就可以了,亲测 <?xml version="1.0" encoding="UTF-8" ?> <!-- 必须配置一