Hi,

I am trying the Turbine-Torque out but I just can not get it to work so I
am desperate for some help. I have followed the example (bookstore) but I
am receiving an error message when I am building it (with "ant -f
build.xml")

I have created an MySQL Database with the username "root" and the password
"password". The "project-schema" looks exactly like in theexample.

(I am using Windows 2000 Professional)

Thanks alot in advance!

/Mathias

The errormessage says:


Buildfile: build.xml

main:

init-tasks:

project-sql:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating SQL for YOUR Turbine project! |
     [echo] | Woo hoo!                                 |
     [echo] |                                          |
     [echo] +------------------------------------------+
[torque-sql] D:\Torque\torque\${outputDirectory}\sql\report.
${project}.sql.gener
ation

BUILD FAILED
java.lang.VerifyError: (class:
org/apache/turbine/torque/engine/database/transfo
rm/XmlToAppData, method: parseFile signature:
(Ljava/lang/String;)Lorg/apache/tu
rbine/torque/engine/database/model/AppData;) Incompatible object
argument for fu
nction call
        at
org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueSQLT
ask.java:153)
        at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
        at org.apache.tools.ant.Task.perform(Task.java:319)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)

        at org.apache.tools.ant.Task.perform(Task.java:319)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)




This is what the build properties file look like:

=== 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 = root
torque.database.password = password
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 = root
torque.database.bookstore.password = password
===========================================


--
To unsubscribe, e-mail:   <mailto:turbine-torque-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-user-help@;jakarta.apache.org>

Reply via email to