You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Dave Patterson <da...@hotmail.com> on 2002/07/19 10:54:49 UTC

Problem with TDK howto - ant init

Hi All,

I'm trying to follow the tdk howto document to build a sample application 
(newapp). I'm using turbine 2.1 binaries, mysql and the sun1.4 jdk on win2k. 
'ant init' croaks at the torque-sql target. The newapp database is created 
but the tables are not. From what I can, see the problem occurs when 
converting the xml schema into a vanilla SQL script.

Any help would be appreciated.

Dave Patterson.

init-tasks:

turbine-sql:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating SQL for Turbine base system!  |
     [echo] |                                          |
     [echo] +------------------------------------------+
[torque-sql] G:\tdk\webapps\newapp\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)


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Problem with TDK howto - ant init

Posted by Jürgen Jatzkowski <jj...@patagonics.de>.
Brent Hale wrote:
> Since no one else has replied I will attempt it.
> 
> I had the identical error to the one you are getting.  I finally went with
> the tdk-2.2-b1.zip from
> <http://jakarta.apache.org/builds/jakarta-turbine/tdk/release/2.2-b1/>.

I had the same problem like Dave. Now that I took tdk-2.2-b2 the stuff 
runs - except the initialization of table ID_TABLE. Here it seems that a 
wrong calling order to the creation and population of ID-TABLE occurs. 
After "ant init" there are only two entries present in ID_TABLE: RDF2 
and RDF3. Using afterwards the created sql-script (don't remember the 
name) fills in the missing entries.

Jürgen

-- 
juergen jatzkowski
jj@patagonics.de   Linux, because rebooting is for adding hardware


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Problem with TDK howto - ant init

Posted by Brent Hale <bh...@eventronix.com>.
Since no one else has replied I will attempt it.

I had the identical error to the one you are getting.  I finally went with
the tdk-2.2-b1.zip from
<http://jakarta.apache.org/builds/jakarta-turbine/tdk/release/2.2-b1/>.
Even with this version it took some figuring out to get newapp to build and
work properly.  I documented as much as I could in a post to this group on
July 3, 2002.  Reading that post may help.  I am still figuring out turbine
so my comments may not be worth much.

Good Luck,
Brent



-----Original Message-----
From: Dave Patterson [mailto:davpat00@hotmail.com]
Sent: Friday, July 19, 2002 2:55 AM
To: turbine-user@jakarta.apache.org
Subject: Problem with TDK howto - ant init


Hi All,

I'm trying to follow the tdk howto document to build a sample application
(newapp). I'm using turbine 2.1 binaries, mysql and the sun1.4 jdk on win2k.
'ant init' croaks at the torque-sql target. The newapp database is created
but the tables are not. From what I can, see the problem occurs when
converting the xml schema into a vanilla SQL script.

Any help would be appreciated.

Dave Patterson.

init-tasks:

turbine-sql:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating SQL for Turbine base system!  |
     [echo] |                                          |
     [echo] +------------------------------------------+
[torque-sql] G:\tdk\webapps\newapp\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.jav
a: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)


_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>