`

解决Referenced file contains errors(struts-2.0.dtd)

阅读更多

错误: Referenced file contains errors(http://struts.apache.org/dtds/struts-2.0 .dtd ).

 

解决方法(两种):

     1. 这个可能是你的DTD文件找不到,或者解析有错,才发生的错误.你可以在地址栏里输入http://struts.apache.org/dtds/struts-2.0 .dtd 这个看能查看不,如果不能,应该是网络的问题或XML解析的问题,解决的方法就是你把DTD文件拷贝到你的CLASSPATH目录下,把http://struts.apache.org/dtds/struts-2.0 .dtd 这个路径换成"/WEB-INF/classes/struts-2.0 .dtd "这样再试一下

 

     2. 从struts2-core-2.x.x.jar中取出struts-2.0.dtd,打开[Window]-[Properties],打开对话框.在左边的树形列表中选择[MyEclipse]-[Files-Editors]-[XML]-[XML Catalog],此时右边显示相应的内容.在右边[XML Catalog Entries]下方有一个[Add]按钮,单击它,在弹出的对话框中输入:
          Location:UseStruts2/src/struts 2.0.dtd(这个选择你刚取出来的 struts-2.0.dtd文件)
          Key Type:Public ID
          Key:-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
选择[OK]即可添加.

 

分享到:
评论

相关推荐

    struts.xml的错误解决办法

    错误提示"Referenced file contains error (http://struts.apache.org/dtds/struts-2.0.dtd)"表明系统无法找到或解析指定的DTD文件,这通常是由于网络连接问题、DTD文件位置不正确或XML解析器无法识别DTD导致的。DTD...

    jaxb-impl.jar包

    **jaxb-impl.jar包详解** `jaxb-impl.jar`是Java Architecture for XML Binding (JAXB)的一个实现包,它是Java平台标准版(Java SE)和企业版(Java EE)的一部分,主要用于XML到Java对象的绑定以及反之,使得...

    validation-api-2.0.0.Final.jar

    validation-api-2.0.0.Final.jar 主要用于支持Maven项目,缺失可引起以下异常The type javax.validation.Payload cannot be resolved. It is indirectly referenced from required .class files

    spring-tx-4.2.2.RELEASE.jar

    The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced from required .class files 解决方法: 导入spring-tx-4.2.2.RELEASE.jar包。

    SCWCD-310-081.pdf

    `id`: Specifies a name to give the bean so that it can be referenced later in the JSP page. - D. `class`: Specifies the fully qualified class name of the JavaBean. - C. `name`: Not necessary for ...

    SEW软件使用方法-PPT.ppt

    等待轴达到参考点P11:2 “Axis referenced”=1。 - 5. 完成后取消参考运行“Start”=0。 #### 五、自动模式(Automatic Mode) 自动模式适用于需要精确控制位置的应用场景。 - **控制字配置**:PO1中的11位和12位均...

    j2objc-annotations-1.1.jar

    The type com.google.j2objc.annotations.ReflectionSupport$Level cannot be resolved. It is indirectly referenced from required .class files

    plat-sw-3.0.0.1.zip

    bazel_root/540135163923dd7d5820f3ee4b306b32/external/adv_plat/plat-sw-3.0.0.1.zip: Connection reset and referenced by '//modules/drivers/camera:camera'. ERROR: (12-26 08:52:07.359) Analysis of target ...

    rogue-registers-description-docs.zip

    "Rogue Registers Referenced in the Firmware Interface" 和 "Rogue Registers Referenced in the KMDriver" 分别指向了rogue registers在固件接口和内核模式驱动程序中的应用。固件接口通常是硬件和操作系统之间的...

    dubbo找不到dubbo.xsd报错

    dubbo找不到dubbo.xsd报错, cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'. ... 2) the document could not be read;...

    apache-ant-1.8.2.jar DDD

    The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files 部署openfire4.2.1

    PanoplyWin-4.12.11.zip

    Panoply plots geo-referenced and other arrays from netCDF, HDF, GRIB, and other datasets. Panoply is a cross-platform application that runs on Macintosh, Windows, Linux and other desktop computers. ...

    dubbo.

    Dubbo 是一款高性能、轻量级的开源Java RPC框架,由阿里巴巴公司开发并维护,它主要解决了企业服务治理的问题,提供了服务注册、服务发现、负载均衡、调用链跟踪等核心功能。在分布式系统中,Dubbo扮演着关键角色,...

    spring-tx.jar

    The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced异常缺少的包

    MIL-STD-1399-501A.013205.PDF

    3. **引用文档(REFERENCED DOCUMENTS)**:列出本标准所依赖的政府文档和标准,这些文档可能是制定规范时的重要参考。 - **政府文档(Government documents)**:可能包括其他军事或海军发布的规范、指令或政策。...

    MIL-STD-878A.029276.pdf

    引用文档(REFERENCED DOCUMENTS)** 标准中引用了MIL-T-5041,这是关于飞机充气轮胎的军用规格,以及MIL-R-7726,涉及旧充气轮胎的修理和翻新以及内胎的修理。这些文档是此标准的一部分,并规定了在特定采购功能...

    thymeleaf-extras-springsecurity-3.0-master.zip

    This repository contains two projects: thymeleaf-extras-springsecurity3 for integration with Spring Security 3.x thymeleaf-extras-springsecurity4 for integration with Spring Security 4.x Current ...

    Killtest1Z0-051.pdf

    选项D(They always return a single result row for every row of a queried table)和E(They can return a data type value different from the one that is referenced)是正确的。选项A错误,因为单行函数可能...

    M4M v2.1.1 Host Interface API - org.mifare4mobile.hostinterface - 2.2.zip

    Export file for package 'org.mifare4mobile.hostinterface' is generated with AID: 0xA0:0x0:0x0:0x3:0x96:0x4D:0x34:0x4D:0x30 Version: 2.2 Set of documents referenced in this package: 昜VC Creation] ...

    apache-ant-1.8.2.jar

    The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包

Global site tag (gtag.js) - Google Analytics