解决hibernate:referenced file contains errors http hibernate.sourceforge.net hibernate-mapping-3.0.dtd

  今天电脑突然蓝屏,重启后进入eclipse,发现项目下的hibernate_cfg.xml莫名其妙的报错,在网上找了好久最终尝试后得到了答案,报错的内容是:referenced file contains errors http hibernate.sourceforge.net hibernate-mapping-3.0.dtd,有的人建议修改里面的约束,但是我这是从svn挡下来的项目,不能因为个人提交这种更新,最后的处理方式是:打开Eclipse-->Window-->Preferences-->Web and XML-->XML Catalog 在右边点击Add XML Catalog Entry ,location就是你的hibernate-configuration-3.0.dtd和hibernate-mapping-3.0.dtd两个dtd在本地的位置,这两个文件你可以从hibernate的源码包里面找到,Key Type选择URI,这是两个dtd,所以你需要add两个,KEY就是与其对应的http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd 、http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd ,这都做好了,刷新项目,你会发现错误没有了。


  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 5
    评论
Thymeleaf - Spring Security integration modules [Please make sure to select the branch corresponding to the version of Thymeleaf you are using] Status This is a thymeleaf extras module, not a part of the Thymeleaf core (and as such following its own versioning schema), but fully supported by the Thymeleaf team. 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 versions: Version 3.0.2.RELEASE - for Thymeleaf 3.0 (requires Thymeleaf 3.0.3+) Version 2.1.3.RELEASE - for Thymeleaf 2.1 (requires Thymeleaf 2.1.2+) License This software is licensed under the [Apache License 2.0] (http://www.apache.org/licenses/LICENSE-2.0.html). Requirements (3.0.x) Thymeleaf 3.0.0+ Spring Framework version 3.0.x to 4.3.x Spring Security version 3.0.x to 4.2.x Web environment (Spring Security integration cannot work offline) Maven info groupId: org.thymeleaf.extras artifactId: Spring Security 3 integration package: thymeleaf-extras-springsecurity3 Spring Security 4 integration package: thymeleaf-extras-springsecurity4 Distribution packages Distribution packages (binaries + sources + javadoc) can be downloaded from SourceForge. Features This module provides a new dialect called org.thymeleaf.extras.springsecurity3.dialect.SpringSecurityDialect or org.thymeleaf.extras.springsecurity4.dialect.SpringSecurityDialect (depending on the Spring Security version), with default prefix sec. It includes: New expression utility objects: #authentication representing the Spring Security authentication object (an object implementing the org.springframework.security.core.Authentication interface). #authorization: a expression utility object with methods for checking authorization based on expressions, URLs and Access Control Lists. New attributes: sec:authentication="prop" outputs a prop property of the authentication object, similar to the Spring Secu
YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明
这个错误提示表示在解析 XML 文件时遇到了一个引用的 DTD(Document Type Definition)文件(http://getahead.org/dwr/dwr20.dtd)存在问题。 DTD 是一种用于定义 XML 文档结构的文件,它包含了元素、属性、实体等的定义。在解析 XML 文件时,解析器会根据 DTD 文件来验证 XML 的结构和语法是否正确。 这个错误可能是由于以下几个原因导致的: 1. 网络连接问题:无法访问 DTD 文件的 URL,可能是网络连接不可用或者 DTD 文件不存在。 2. DTD 文件错误:DTD 文件本身存在语法错误或者不符合规范。 3. 配置问题:可能是配置文件中指定的 DTD 文件的 URL 不正确或者配置文件本身存在语法错误。 要解决这个问题,你可以尝试以下几种方法: 1. 检查网络连接:确保你的网络连接正常,能够访问互联网。 2. 验证 DTD 文件:尝试在浏览器中打开 http://getahead.org/dwr/dwr20.dtd,查看是否能够正确加载和显示 DTD 文件内容,如果无法打开或者显示异常,则可能是 DTD 文件本身存在问题。 3. 更新 DTD 文件地址:如果 DTD 文件无法访问或者不存在,可以尝试找到最新的 DTD 文件地址,并更新到配置文件中。 4. 检查配置文件:检查配置文件中关于 DTD 文件的配置是否正确,确保语法正确并且 URL 地址有效。 如果以上方法都无法解决问题,你可以尝试在 "Problems View" 中查看更详细的错误信息,看是否有其他提示或者错误堆栈信息可以提供更多线索来解决问题。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 5
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值