Problem Getting sample app to init.

I get this java runtime error:

...<Cut for brevity>...

   turbine-sql: 
    ["echo"] +------------------------------------------+ 
    ["echo"] |                                          | 
    ["echo"] | Generating SQL for Turbine base system!  | 
    ["echo"] |                                          | 
    ["echo"] +------------------------------------------+ 
   [torque-sql] /home/sham/tdk/tdk/webapps/portal/WEB-INF/src/sql/turbine-schema.sql 

   BUILD FAILED 
   java.lang.VerifyError: (class: org/apache/turbine/torque/engine/database/transform/XmlToAppData, method: parseFile signature: 
   (Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database/model/AppData;) Incompatible object argument for function call 
        at org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueSQLTask.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:317) 
        at org.apache.tools.ant.Target.execute(Target.java:309) 
        at org.apache.tools.ant.Target.performTasks(Target.java:334) 
        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:317) 
        at org.apache.tools.ant.Target.execute(Target.java:309) 
        at org.apache.tools.ant.Target.performTasks(Target.java:334) 
        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) 

   Total time: 30 seconds 
   java.lang.VerifyError: (class: org/apache/turbine/torque/engine/database/transform/XmlToAppData, method: parseFile signature: 
   (Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database/model/AppData;) Incompatible object argument for function call 
        at org.apache.turbine.torque.TorqueSQLTask.initControlContext(TorqueSQLTask.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:317) 
        at org.apache.tools.ant.Target.execute(Target.java:309) 
        at org.apache.tools.ant.Target.performTasks(Target.java:334) 
        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:317) 
        at org.apache.tools.ant.Target.execute(Target.java:309) 
        at org.apache.tools.ant.Target.performTasks(Target.java:334) 
        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) 
   (class: org/apache/turbine/torque/engine/database/transform/XmlToAppData, method: parseFile signature:    
   (Ljava/lang/String;)Lorg/apache/turbine/torque/engine/database/model/AppData;) Incompatible object argument for function call 

I am not sure if this is the right forum to be asking for help, but anyways if you are having this problem also please tack on a nick to this posting....


I am getting the same VerifyError. Very frustrating...

-jayekub


Navigation trail: TurbineProjectPages


[I've been using Turbine for 6 months now, and I finally worked out the relation between the Templates, the Actions and the Screens. There are howtos at jakarta.apache.org/turbine/turbine-2/howtos.html but they can be rather impenetrable at first. What I wanted was some text like this:

"One of the main features of Turbine is that java classes called screens will get executed automatically whenever a Template is viewed through the Turbine Engine. Web Forms can specify an action that will be performed on submit and a template that will be used to show the results, thus causing a form submit to lead to the execution of both an Action and a Template."

Probably some kind of diagram would help, but I'm not much of an artist (sad) -SamJoseph]

[JakartaTDK22-MacOSX|JakartaTDK22-MacOSX] – FWIW, I went ahead and jotted some notes on getting TDK 2.2 running on Mac OS X... ( -RobLeachman)

[JakartaTDK/Starting_Project_With_TDK2.2_And_Maven] – Lester Ward posted this to the list. It looks like gold to me! ( -RobLeachman)

Just finished installing the TDK. Had everything worked perfectly I would have been done in about 30 minutes (of course it actually took about 10 hours over 3 days).

My project was called turbo1 and these are the specifics of what I was doing wrong.

webapps/turbo1/WEB-INF/build/build.properties as far as I can tell should look something like this (mysql):

 
#this doesn't get transferred right now
tdk.home = /data/tdk-2.2
database.name = turbo1
database = mysql
#The createDatabaseUrl cannot have the database name in it
createDatabaseUrl = jdbc:mysql://localhost/
#buildDatabaseUrl and databaseUrl should have the database name in it
buildDatabaseUrl = jdbc:mysql://localhost/turbo1
databaseUrl = jdbc:mysql://localhost/turbo1
databaseDriver = org.gjt.mm.mysql.Driver
databaseUser = turbine
databasePassword = turbine
databaseHost = 127.0.0.1
 

I had no luck with Mysql-3.23.53 on newapp 'ant init'

BUILD FAILED file:C:/tdk-2.2/webapps/newapp/WEB-INF/build/build-torque.xml:302: java.sql.SQLE xception: General error: Unknown database 'newapp'

is caused by the lines in src/sql/create-db.sql which refer to a database called 'default'. Try typing them in to a mysql console and you'll see what I mean.

Maybe later Mysqls are better. No - I've just checked - DEFAULT is a reserved word in MySQL, so it's a pretty dumb name for a database. It seems to stem from the definition of DEFAULT_DATABASE in /tdk/ancillary/2/src/conf/build.xml; but changing that and rebuilding recreates create-db.sql with the offending lines still there. So I guess that something isn't being rebuilt that needs to be...


> I've just checked - DEFAULT is a reserved word.... it's actually a bug in id-table-schema.xml.patch, check issue TRQS35 in scarab. Note you have to register first. http://nagoya.apache.org/scarab/issues/curmodule/2100/rissue/1/tqk/1/oldscreen/entry%2CWizard1.vm/template/ViewIssue.vm/id/TRQS35

you can download the patch in the atachments tab.

 
  • No labels