Our automated build system regenerates our DDL during each build using Hibernate's schema-export. A couple days ago we noticed that schema-export was mysteriously failing with the following error:
Quote:
Connection timed out: connect Nested exception: Connection timed out: connect
After some investigation I believe I narrowed the problem down to the the XDoclet generated .hbm.xml files. I've snipped the important part out, but this should be near the top of all .hbm.xml files:
Quote:
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping.dtd">
Note that the DTD is pointing to hibernate.sourceforge.net. Now, I believe schema-export is validating the XML against the DTD (which is a good thing). The problem is that the sourceforge site has been unavailable intermittantly for a few days. What is really concerning is that a remote web site can completely fail our local build system.
Would it be possible to move the DTD to a more reliable site? Or better yet, could we validate against a DTD that is included in the hibernate JAR?