Hibernate-configuration-3.0.dtd The markup declarations contained or pointed to by the document type declaration must be well-formed

Hi All ,

Recently since last couple of days we have started getting below exceptions abruptly



 hibernate-configuration-3.0.dtd:1:2: The markup declarations contained or pointed to by the document type declaration must be well-formed.

 error while parsing
org.xml.sax.SAXParseExceptionpublicId: -//Hibernate/Hibernate Configuration DTD 3.0//EN; systemId: http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd; lineNumber: 1; columnNumber: 2; The markup declarations contained or pointed to by the document type declaration must be well-formed.
        at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
        at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:338)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)

It looks like hibernate is not finding DTD , please can someone tell if there is any change in hibernate related to DTD location. How can we avoid this error.

Thanks a lot

Hi, hibernate’s sourceforge repositories have been discontinued. You can use this address: https://hibernate.org/dtd/hibernate-configuration-3.0.dtd. You can find all of Hibernate’s DTDs here: Index of /dtd - Hibernate.

1 Like

Thanks. So is it that it got discontinued recently ? because we have started facing this issue since last couple of days.

Thanks. So is it that it got discontinued recently ? because we have started facing this issue since last couple of days.