Using TDK2.1, MySQL, on W2K
In my project-schema.xml I have the following table definition...

  <table name="MY_TABLE">
    <column name="ID" required="true" autoIncrement="true" primaryKey="true"
type="INTEGER"/>
    <column name="FK_USER_ID" size="255" type="INTEGER"/>
    <column name="FOO" size="255" type="VARCHAR"/>

    <foreign-key foreignTable="TURBINE_USER">
      <reference local="FK_USER_ID" foreign="USER_ID"/>
    </foreign-key>
  </table>

...when I run "ant init" it fails to build.  The compilation error is:

ERROR!! Attempt to set foreign key to nonexistent table, TURBINE_USER!
java.lang.NullPointerException
at
org.apache.turbine.torque.engine.database.transform.XmlToAppData.startElemen
t(XmlToAppData.java:237)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1122)
at ..... bla bla bla ....

I could be wrong but it seems as though that "ant init" wants to build my
project schema before building the turbine schema.  So what do I do?


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to