On 12/19/01 2:28 PM, "Kevin Clark" <[EMAIL PROTECTED]> wrote:
> I've got the following line in my turbine-schema.xml: > > <column name="BODY" type="TEXT"/> > > When I build with the "init" target, I get: Here is the dtd for the torque datamodel descriptor: http://cvs.apache.org/viewcvs/jakarta-turbine-torque/src/dtd/database.dtd?re v=1.8&content-type=text/vnd.viewcvs-markup The supported types, the types used in the datamodel descriptor are JDBC types, not the types support natively by your database. Here is the the db.props file for MySQL: http://cvs.apache.org/viewcvs/jakarta-turbine-torque/src/templates/sql/base/ mysql/db.props?rev=1.3&content-type=text/vnd.viewcvs-markup You have to use one of the types specified in this file. We only support JDBC types so we can handle the variety of databases and drivers. The native "TEXT" type in MySQL isn't directly supported. > BUILD FAILED > /tdk/webapps/[appname]/WEB-INF/build/build.xml:207: Exception thrown by > 'generator.parse'. For more information consult the velocity log. > > And in velocity.log, I see: > > Wed Dec 19 19:00:15 CST 2001 [error] Method get threw exception for > reference $dbprops in template sql/base/mysql/col > umns.vm at [2,20] > Wed Dec 19 19:00:15 CST 2001 [error] Method parse threw exception for > reference $generator in template sql/base/mysql > /table.vm at [8,16] > Wed Dec 19 19:00:15 CST 2001 [error] Method parse threw exception for > reference $generator in template sql/base/Contr > ol.vm at [28,17] > > I'm using MySQL. Everything builds fine if I use type "BLOB" or > "VARCHAR"; however, when I use "TEXT" I get this error. Can somebody > please help? > > Also, I've put a couple of my own tables in turbine-schema.xml because > one of the fields is a foreign key which references TURBINE_USER. When I > put my tables in [appname]-schema.xml, the build failed because it > couldn't find the TURBINE_USER table. Am I handling this correctly, or > am I missing something? > > Thanks, > > -Kevin > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- jvz. Jason van Zyl http://tambora.zenplex.org http://jakarta.apache.org/turbine http://jakarta.apache.org/velocity http://jakarta.apache.org/alexandria http://jakarta.apache.org/commons -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
