Error message:
Org.hibernate.InvalidMappingException:Could not parse mapping document from resource/***/****.hbm.xml
The project does not start properly, confirming that the hibernate mapping file exists.
Problem solving:
When the hibernate map file is generated backwards, the DTD file referenced by the header is "HTTP://WWW.HIBERNATE.ORG/DTD/HIBERNATE-MAPPING-3.0.DTD" and the original DTD file is "HTTP// Hibernate.sourceforge.net/hibernate-mapping-3.0.dtd ", manually modified to run normally.
Cause of the problem:
This problem can occur because the hibernate version selected at reverse generation is different from the Hibernate version currently in use, resulting in a different DTD being introduced, resulting in unresolved parsing.
The current project uses hibernate3.0, and the corresponding DTD file is in Hibernate3.jar.
Path: ORG/HIBERNATE/HIBERNATE-MAPPING-3.0.DTD
Hibernate3 hbm file incorrectly referencing a DTD file causes the project to fail to start problem handling