I can't download hibernate-configuration-3.0.dtd in Eclipse

I am trying to setup the hibernate.cfg.xml file for my application in eclipse and it does not like the reference to hibernate configuration

at the top.

Initially it was telling me I was not allowed to download external files but I changed the maven setting to fix that but now it is showing the error below

Not sure if this is relevant but I am using Hibernate 6.5.2 on Eclipse 2024-03 (4.31.0) with Java 17

Does anyone have an idea why this is happening

After disabling the downloading of external files, restarting Eclipse, then switching it back on and restarting Eclipse again this issue has now been resolved - I really don’t understand why but everything is now working as expected

I do find Eclipse can be very temperamental

Eclipse can be temperamental at times. I will share you some tips to avoid similar issues in the future:

  • Check XML Syntax

<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

  • Verify all required dependencies are correctly listed
  • make sure your Eclipse and all related plugins are up to date.