I've been getting an error when I run the hbm2ddl ant task after switching to hibernate 3.1 rc2: "Schema text failed: Could not read mapping document from file," followed by the correct path to my mapping xml file, which is also valid. After commenting things out for a while I found that it was getting stuck on a simple string property for which it did not seem to be able to infer the correct type. That is,
<property name="name"/>
fails with the above error, while
<property name="name" type="string"/>
succeeds. This happens even though the class in question includes getters/setters for string properties like this. I also noticed it happening with an id of type string.
This seems so simple, what could be causing this error? BTW it would be nicer if the Hibernate configuration class gave an error message more informative that "could not read mapping document from file," which makes it sound like a path related problem.
Thanks,
Mark Becker
|