4

This is the warning that I have been getting.
The file cannot be validated as the XML definition "http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd" that is specified as describing the syntax of the file cannot be located.

The jars for hibernate are present. What am I missing?

4

2 回答 2

1

有时eclipse可能无法DTD加载XML file.

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

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

Eclipse:在 log4j.xml 中引用 log4j.dtd

于 2013-03-03T15:47:34.290 回答
0

当 Eclipse 无法检测到.classpath. 确保将它们添加到正确的项目.classpath中。

您可能希望刷新项目以使更改生效。

于 2013-03-03T13:57:03.753 回答