Struts2中遇到的“Referenced file contains errors”的解决方法
2011-06-14 14:25
429 查看
原因是http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd已经不是dtd约束文件了,
打开网址,发现opensymphony的网址已经迁移走了,因为xwork的东西已经并入struts2中,成为apache的一部分.
所有的dtd已经移交到http://struts.apache.org/dtds/ 这个地方.
以后struts2的校验器的规范要改成:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
这样就不会报错了,运行正常.over.
打开网址,发现opensymphony的网址已经迁移走了,因为xwork的东西已经并入struts2中,成为apache的一部分.
所有的dtd已经移交到http://struts.apache.org/dtds/ 这个地方.
以后struts2的校验器的规范要改成:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">
这样就不会报错了,运行正常.over.
相关文章推荐
- Referenced file contains errors 解决方法
- Referenced file contains errors(struts-2.0.dtd)的解决方法
- Referenced file contains errors 解决方法
- 关于Referenced file contains errors 解决方法
- Referenced file contains errors 解决方法
- Referenced file contains errors 解决方法
- Referenced file contains errors 解决方法
- Spring项目出现Referenced file contains errors的 解决方法
- Referenced file contains errors 解决方法 (转载地址:http://blog.sina.com.cn/s/blog_6a6b141001011xhn.html)
- contains a file system with errors, check forced解决方法
- 解决hibernate:referenced file contains errors http hibernate.sourceforge.net hibernate-mapping-3.0.dtd
- Referenced file contains errors (http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd)的解决
- linux系统启动报错:[contains a file system with errors, check forced]的解决方法参考
- 关于:Referenced file contains errors (http://www.springframework.org/schema/beans/spring-beans-4.2错的解决
- 解决Referenced file contains errors(struts-2.3.dtd)
- Spring 配置异常解决办法之Referenced file contains errors (http://www.sp
- 解决Referenced file contains errors(struts-2.0.dtd)
- xxx contains a file system with errors, check forced解决方法
- 系统无法启动,contains a file system with errors, check forced错误解决方法
- linux系统启动报错:[contains a file system with errors, check forced]的解决方法参考