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?
Some times eclipse
may failed to load that DTD
file specified in the XML file
.
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
This occurs when eclipse cannot detect the hibernate libraries on the .classpath
. Make sure that they are added to the correct project .classpath
.
You might want to refresh the project in-order for the changes to take effect.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.