简体   繁体   中英

Error after importing a project into eclipse

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

Eclipse: Referencing log4j.dtd in log4j.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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM