db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bengt-Erik Fröberg <bengt.erik.frob...@ks.se>
Subject Common starting problem
Date Fri, 22 Aug 2003 16:23:35 GMT
Hi all.

I have a problem that seems to be puzzling to many a good developer....
I'm trying to run the Torque tutorial example without any luck.

ANT: version 1.5.3-1
Java: version 1.4.2
OS: W2000 Professional
Torque: version 3.1-beta1

===============================================
GENERATED OUTPUT....
===============================================
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corporation

C:\>cd %TORQUE_HOME%

C:\jdk\torque-gen-3.1-beta1>ant -f build-torque.xml
Buildfile: build-torque.xml

main:

check-use-classpath:

check-run-only-on-schema-change:

sql-check:

sql:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating SQL for YOUR Torque project!  |
     [echo] |                                          |
     [echo] +------------------------------------------+

sql-classpath:

sql-template:
     [echo] loading templates from templates

BUILD FAILED

C:\jdk\torque-gen-3.1-beta1\build-torque.xml:208: Could not create task of
type:
 torque-sql due to java.lang.VerifyError: (class:
org/apache/torque/task/TorqueD
ataModelTask, method: initControlContext signature:
()Lorg/apache/velocity/conte
xt/Context;) Incompatible object argument for function call

Total time: 2 seconds
C:\jdk\torque-gen-3.1-beta1>
===============================================
build.properties
===============================================
torque.project = bookstore
torque.database = mysql
torque.targetPackage = com.kazmier.om
torque.database.createUrl = jdbc:mysql://127.0.0.1/mysql
torque.database.buildUrl = jdbc:mysql://127.0.0.1/bookstore
torque.database.url = jdbc:mysql://127.0.0.1/bookstore
torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.user = blahblah
torque.database.password = bluhbluh
torque.database.host = 127.0.0.1
===============================================
Torque.properties
===============================================
log4j.rootCategory = DEBUG, default
log4j.appender.default = org.apache.log4j.FileAppender
log4j.appender.default.file = ./torque.log
log4j.appender.default.layout = org.apache.log4j.SimpleLayout

torque.database.default = bookstore
torque.database.bookstore.driver = org.gjt.mm.mysql.Driver
torque.database.bookstore.url = jdbc:mysql://127.0.0.1/bookstore
torque.database.bookstore.username = blahblah
torque.database.bookstore.password = bluhbluh
===============================================
project-schema.xml
===============================================
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE database SYSTEM
 "http://db.apache.org/torque/dtd/database_3_1.dtd">

<database
  name="bookstore"
  defaultIdMethod="idbroker">

  <table name="book" description="Book Table">
    <column
      name="book_id"
      required="true"
      primaryKey="true"
      type="INTEGER"
      description="Book Id"/>
    <column
      name="title"
      required="true"
      type="VARCHAR"
      size="255"
      description="Book Title"/>
    <column
      name="isbn"
      required="true"
      type="VARCHAR"
      size="24"
      javaName="ISBN"
      description="ISBN Number"/>
    <column
      name="publisher_id"
      required="true"
      type="INTEGER"
      description="Foreign Key Publisher"/>
    <column
      name="author_id"
      required="true"
      type="INTEGER"
      description="Foreign Key Author"/>
    <foreign-key foreignTable="publisher">
      <reference
        local="publisher_id"
        foreign="publisher_id"/>
    </foreign-key>
    <foreign-key foreignTable="author">
      <reference
        local="author_id"
        foreign="author_id"/>
    </foreign-key>
  </table>
  <table name="publisher" description="Publisher Table">
    <column
      name="publisher_id"
      required="true"
      primaryKey="true"
      type="INTEGER"
      description="Publisher Id"/>
    <column
      name="name"
      required="true"
      type="VARCHAR"
      size="128"
      description="Publisher Name"/>
  </table>
  <table name="author" description="Author Table">
    <column
      name="author_id"
      required="true"
      primaryKey="true"
      type="INTEGER"
      description="Author Id"/>
    <column
      name="first_name"
      required="true"
      type="VARCHAR"
      size="128"
      description="First Name"/>
    <column
      name="last_name"
      required="true"
      type="VARCHAR"
      size="128"
      description="Last Name"/>
  </table>
</database>
===============================================

>From what I've been able to read on the newsgroup(s) there seems to be
some kind of compability issues

between certain .jars... but which .jars!?

Would appreciate any suggestions.

Thanks!

/Bengt-Eric Froberg, developer, Karolinska Hopspital, Sweden



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message