【问题标题】:Error after importing a project into eclipse将项目导入eclipse后出错
【发布时间】:2013-02-17 15:28:10
【问题描述】:

这是我收到的警告。
无法验证文件,因为无法找到指定为描述文件语法的 XML 定义“http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd”。

存在用于休眠的罐子。 我错过了什么?

【问题讨论】:

    标签: xml eclipse hibernate


    【解决方案1】:

    有时eclipse 可能无法加载XML file 中指定的DTD 文件。

    在这种情况下,您可以download 并手动设置。

    即使下面的链接指定为 log4j xml 文件。对hibernate.cfg.xml 执行相同的过程

    Eclipse: Referencing log4j.dtd in log4j.xml

    【讨论】:

      【解决方案2】:

      当 Eclipse 无法检测到 .classpath 上的休眠库时会发生这种情况。确保将它们添加到正确的项目.classpath

      您可能需要刷新项目以使更改生效。

      【讨论】:

      • 我什至收到了这个警告。 无法验证文件,因为主机“www.hibernate.org”当前无法访问。它在 hibernate.cfg.xml 的这一行显示警告:` 眠/休眠配置DTD//EN" "hibernate.org/dtd/hibernate-configuration-3.0.dtd">`
      猜你喜欢
      • 2018-07-22
      • 2018-08-24
      • 2019-09-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-05-21
      • 1970-01-01
      相关资源
      最近更新 更多