At 04:46 PM 12/8/2006, you 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

You need to include the stax-api-1.0.jar file in your classpath. It's in the lib directory of the distribution. You might also need stax-1.1.2-dev.jar.



John Fereira
[EMAIL PROTECTED]
Ithaca, NY

Reply via email to