To add a little more info to this problem:
I have just noticed that the data (which should be written to data.xml)
is not being written out.
It would seem that this is the cause of the error indicated below.
Regards,
Langdon
Langdon Stevenson wrote:
Hi
I have just discovered ddlutils and am delighted with the concept. It
is exactly what I need for my build process.
It is worth mentioning that I only have a basic knowledge of Java. So
my apology if my questions are simplistic.
I have downloaded and compiles DdlUtils (using jdk1.5.0_10) on WinXP.
I then included the jar file output by the build: DdlUtils-1.0-RC1.jar
in my Ant install in Eclipse.
I have created a built target in a projects build file:
<target name="database-dump" description="Dumps the database structure">
<taskdef name="databaseToDdl"
classname="org.apache.ddlutils.task.DatabaseToDdlTask">
</taskdef>
<databaseToDdl modelName="MyModel">
<database url="jdbc:mysql://192.168.8.52:3306/dev_prototype"
driverClassName="com.mysql.jdbc.Driver"
username="prototype"
password="prototype"/>
<writeSchemaToFile outputFile="db-schema.xml"/>
<writeDataToFile outputFile="data.xml"/>
</databaseToDdl>
</target>
Initially I had to spend some time including a bunch of the commons
libraries to get things working. Now when I run the build, the output
file is created successfully and looks fine. However I get the
following error:
BUILD FAILED
java.lang.NoClassDefFoundError: javax/xml/stream/XMLStreamException
I expect that this is caused by something simple, but I can't work it out.
Any help would be greatly appreciated.
Regards,
Langdon