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.
这是我得到的警告。该文件无法作为XML定义“http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd”进行验证,该定义指定为无法定位文件的语法。
The jars for hibernate are present. What am I missing?
用于休眠的罐子存在。我错过了什么?
2 个解决方案
#1
1
Some times eclipse
may failed to load that DTD
file specified in the XML file
.
有时eclipse可能无法加载XML文件中指定的DTD文件。
In such cases you can download
and set it manually.
在这种情况下,您可以手动下载和设置它。
Even though the below link specified as for log4j xml file.Follow the same procedure for hibernate.cfg.xml
即使下面的链接指定为log4j xml file.Follow与hibernate.cfg.xml相同的过程
Eclipse: Referencing log4j.dtd in log4j.xml
Eclipse:在log4j.xml中引用log4j.dtd
#2
0
This occurs when eclipse cannot detect the hibernate libraries on the .classpath
. Make sure that they are added to the correct project .classpath
.
当eclipse无法检测.classpath上的hibernate库时会发生这种情况。确保将它们添加到正确的项目.classpath中。
You might want to refresh the project in-order for the changes to take effect.
您可能希望按顺序刷新项目以使更改生效。
#1
1
Some times eclipse
may failed to load that DTD
file specified in the XML file
.
有时eclipse可能无法加载XML文件中指定的DTD文件。
In such cases you can download
and set it manually.
在这种情况下,您可以手动下载和设置它。
Even though the below link specified as for log4j xml file.Follow the same procedure for hibernate.cfg.xml
即使下面的链接指定为log4j xml file.Follow与hibernate.cfg.xml相同的过程
Eclipse: Referencing log4j.dtd in log4j.xml
Eclipse:在log4j.xml中引用log4j.dtd
#2
0
This occurs when eclipse cannot detect the hibernate libraries on the .classpath
. Make sure that they are added to the correct project .classpath
.
当eclipse无法检测.classpath上的hibernate库时会发生这种情况。确保将它们添加到正确的项目.classpath中。
You might want to refresh the project in-order for the changes to take effect.
您可能希望按顺序刷新项目以使更改生效。