错误: 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]即可添加.
分享到:
相关推荐
validation-api-2.0.0.Final.jar 主要用于支持Maven项目,缺失可引起以下异常The type javax.validation.Payload cannot be resolved. It is indirectly referenced from required .class files
jaxb-impl-2.1.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包。
The type com.google.j2objc.annotations.ReflectionSupport$Level cannot be resolved. It is indirectly referenced from required .class files
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 ...
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;...
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files 部署openfire4.2.1
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. ...
The type org.springframework.dao.DataAccessException cannot be resolved. It is indirectly referenced异常缺少的包
dubbo.
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 ...
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] ...
MQTTv5版的客户端库,原地址:... 本资源合入了解决低于android7.0报错Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.net.ssl.SNIHostName"的问题。
The type org.apache.tools.ant.Task cannot be resolved. It is indirectly referenced from required .class files错误....., 解决办法:在工程中加入此jar包
数字控制的无桥功率因数校正(BL-PFC)控制源代码,基于TI x28系列dsp。
The material in this handbook can be referenced for general information on a particular topic or can be used in the decision-making process for developing an information security program. National ...
终极JDBC连接池 com.zaxxer/HikariCP/2.7.1/HikariCP-2.7.1.jar
referenced in this project |--- src // solutions for problems | |-- _001_TwoSum | | |-- Practice.java // code skeleton | | |-- Solution.java | | |-- Solution*.java // other solutions for this problem ...
The book comes with additional referenced reading material and exercises with each chapter. After reading the book, you will be able to build your own applications in React. The material is kept up ...