I try to get my db schema exported but I get:
BUILD FAILED: /home/tezem/workspace/ExamProj/src/build.xml:49: Schema text failed: net.sf.hibernate.MappingException: persistent class [core.Answer] not found
...
<target name="schemaexport">
<taskdef name="schemaexport" classname="net.sf.hibernate.tool.hbm2ddl.SchemaExportTask"/>
<schemaexport properties="hibernate.properties" quiet="no" text="no" drop="no" delimiter=";" output="schema-export.sql">
<fileset dir="./">
<include name="**/*.hbm.xml" />
</fileset>
</schemaexport>
</target>
I've not used the schema export, but for a start I'd focus on this ant task and make sure it's able to find the class in question ("core.Answer"). For one thing, I don't know if it needs the .java or .class file, so do some investigation, and find out how to specify where the task should look for the file it needs. If it needs the .class file, then is it located at "./core/Answer.class"? That's probably where it's looking for it right now, unless you specify another location.
------------------------------------------------------- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click _______________________________________________ xdoclet-user mailing list xdoclet-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-user