You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Wolfgang Schur <wo...@softrust.com> on 2002/07/02 11:44:09 UTC

build-torque.xml:580 error (tdk2.2)

Sorry to bring this topic up again - but none of the hints in the 
mailing list worked for me so far. I can't build the demo app. Not with 
IBM Java 1.3, not with Sun Java 1.3 (so it can't be the jikes bug), not 
with ant 1.3, 1.4 or 1.5.
I have cleaned the classpath, so no duplicate jars could be the reason. 
What did I miss here? I'm using the tdk 2.2.
I tried both Xerces1.4 and 2.0.2.
Thanks for your patience :-)
Wolfgang

-----------------------
The velocity.log says:
2002-07-02 11:12:32,224 - Velocity successfully started.
2002-07-02 11:12:33,691 - ResourceManager : found sql/db-init/Control.vm 
with loader (REMARK FROM WOLFGANG: I DIDN'T FIND THE DIR sql/db-init) 
org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
2002-07-02 11:12:33,717 - ResourceManager : unable to find resource 
'sql/db-init/newapp/createdb.vm' in any resource loader.
2002-07-02 11:12:33,718 - Method parse threw exception for reference 
$generator in template sql/db-init/Control.vm at  [2,1]
-------------------------

This is the output I get when running ant 1.5:

wolfgang@coolio:/usr/local/tdk/webapps/newapp/WEB-INF/build> 
/usr/local/jakarta-ant-1.5Beta3/bin/ant init
Buildfile: build.xml

check-webinf-exists:

setup-webinf:

init:

setup:

init-tasks:

create-database:

project-create-db-classpath:
      [echo]
      [echo]       driver="org.postgresql.Driver"
      [echo]       url="jdbc:postgresql://localhost:5432/newapp"
      [echo]       userid="postgres"
      [echo]       password="XXXXXX"
      [echo]
[torque-create-db] Using classpath
[torque-create-db] Generating to file 
/usr/local/tdk/webapps/newapp/WEB-INF/src/sql/create-db.sql
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package
[torque-create-db] Resolver: used database.dtd from 
org.apache.torque.engine.database.transform package

BUILD FAILED
/usr/local/tdk/webapps/newapp/WEB-INF/build/build-torque.xml:580: 
Exception thrown by 'generator.parse'. For more information consult the 
velocity log, or invoke ant with the -debug flag.

------------------------------------------------------------------

This is the output I get when running ant 1.3:

Buildfile: build.xml

check-webinf-exists:

setup-webinf:

init:

setup:

init-tasks:

create-database:

project-create-db-classpath:
      [echo]
       driver="org.postgresql.Driver"
       url="jdbc:postgresql://localhost:5432/newapp"
       userid="postgres"
       password="XXXXXX"


BUILD FAILED



/usr/local/tdk/webapps/newapp/WEB-INF/build/build-torque.xml:580: Could 
not create task of type: torque-create-db due to java.lang.VerifyError: 
(class: org/apache/velocity/texen/ant/TexenTask, method: setTemplatePath 
signature: (Ljava/lang/String;)V) Incompatible type for getting or 
setting field
--- Nested Exception ---
java.lang.VerifyError: (class: org/apache/velocity/texen/ant/TexenTask, 
method: setTemplatePath signature: (Ljava/lang/String;)V) Incompatible 
type for getting or setting field
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Class.java:254)
         at org.apache.tools.ant.Project.createTask(Project.java:439)
         at 
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:83)
         at org.apache.tools.ant.Target.execute(Target.java:152)
         at org.apache.tools.ant.Project.runTarget(Project.java:898)
         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
         at org.apache.tools.ant.Target.execute(Target.java:153)
         at org.apache.tools.ant.Project.runTarget(Project.java:898)
         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
         at 
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
         at org.apache.tools.ant.Target.execute(Target.java:153)
         at org.apache.tools.ant.Project.runTarget(Project.java:898)
         at org.apache.tools.ant.Project.executeTarget(Project.java:536)
         at org.apache.tools.ant.Project.executeTargets(Project.java:510)
         at org.apache.tools.ant.Main.runBuild(Main.java:421)
         at org.apache.tools.ant.Main.main(Main.java:149)

-- 
****************************************************
SofTrust Consulting GmbH
Wolfgang Schur              Tel: ++49-69-857007-20
Pirazzistrasse 12 A         Fax: ++49-69-857007-22
D-63067 Offenbach           Email: wolfgang.schur@softrust.com
Germany
****************************************************


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


that helped :-) was: build-torque.xml:580 error (tdk2.2)

Posted by Wolfgang Schur <wo...@softrust.com>.
Thanks Huy! That did it. In the example app "newapp" it is

database = postgresql

Got "database" and "database.name" mixed up. As a hint for other 
first-time TDK users:

*** DO READ THE TORQUE DOCS online (tutorial, etc).***

You'll find most of the info there, that you might look for on the TDK 
pages. It cost me more than a day not to have read these :-)

Cheers
Wolfgang
---------------------------

Huy Do wrote:
> Make sure you have this line in your build.properties (in your WEB-INF/build
> directory)
> 
> target.database = postgresql
> 
> Huy
> 
> 
>>-----Original Message-----
>>From: Wolfgang Schur [mailto:wolfgang.schur@softrust.com]
>>Sent: Tuesday, 2 July 2002 7:44 PM
>>To: turbine-user@jakarta.apache.org
>>Subject: build-torque.xml:580 error (tdk2.2)
>>
>>
>>Sorry to bring this topic up again - but none of the hints in the
>>mailing list worked for me so far. I can't build the demo app. Not with
>>IBM Java 1.3, not with Sun Java 1.3 (so it can't be the jikes bug), not
>>with ant 1.3, 1.4 or 1.5.
>>I have cleaned the classpath, so no duplicate jars could be the reason.
>>What did I miss here? I'm using the tdk 2.2.
>>I tried both Xerces1.4 and 2.0.2.
>>Thanks for your patience :-)
>>Wolfgang
>>
...


-- 
****************************************************
SofTrust Consulting GmbH
Wolfgang Schur              Tel: ++49-69-857007-20
Pirazzistrasse 12 A         Fax: ++49-69-857007-22
D-63067 Offenbach           Email: wolfgang.schur@softrust.com
Germany
****************************************************


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


RE: build-torque.xml:580 error (tdk2.2)

Posted by Huy Do <hu...@tramada.com.au>.
Make sure you have this line in your build.properties (in your WEB-INF/build
directory)

target.database = postgresql

Huy

> -----Original Message-----
> From: Wolfgang Schur [mailto:wolfgang.schur@softrust.com]
> Sent: Tuesday, 2 July 2002 7:44 PM
> To: turbine-user@jakarta.apache.org
> Subject: build-torque.xml:580 error (tdk2.2)
>
>
> Sorry to bring this topic up again - but none of the hints in the
> mailing list worked for me so far. I can't build the demo app. Not with
> IBM Java 1.3, not with Sun Java 1.3 (so it can't be the jikes bug), not
> with ant 1.3, 1.4 or 1.5.
> I have cleaned the classpath, so no duplicate jars could be the reason.
> What did I miss here? I'm using the tdk 2.2.
> I tried both Xerces1.4 and 2.0.2.
> Thanks for your patience :-)
> Wolfgang
>
> -----------------------
> The velocity.log says:
> 2002-07-02 11:12:32,224 - Velocity successfully started.
> 2002-07-02 11:12:33,691 - ResourceManager : found sql/db-init/Control.vm
> with loader (REMARK FROM WOLFGANG: I DIDN'T FIND THE DIR sql/db-init)
> org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
> 2002-07-02 11:12:33,717 - ResourceManager : unable to find resource
> 'sql/db-init/newapp/createdb.vm' in any resource loader.
> 2002-07-02 11:12:33,718 - Method parse threw exception for reference
> $generator in template sql/db-init/Control.vm at  [2,1]
> -------------------------
>
> This is the output I get when running ant 1.5:
>
> wolfgang@coolio:/usr/local/tdk/webapps/newapp/WEB-INF/build>
> /usr/local/jakarta-ant-1.5Beta3/bin/ant init
> Buildfile: build.xml
>
> check-webinf-exists:
>
> setup-webinf:
>
> init:
>
> setup:
>
> init-tasks:
>
> create-database:
>
> project-create-db-classpath:
>       [echo]
>       [echo]       driver="org.postgresql.Driver"
>       [echo]       url="jdbc:postgresql://localhost:5432/newapp"
>       [echo]       userid="postgres"
>       [echo]       password="XXXXXX"
>       [echo]
> [torque-create-db] Using classpath
> [torque-create-db] Generating to file
> /usr/local/tdk/webapps/newapp/WEB-INF/src/sql/create-db.sql
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
> [torque-create-db] Resolver: used database.dtd from
> org.apache.torque.engine.database.transform package
>
> BUILD FAILED
> /usr/local/tdk/webapps/newapp/WEB-INF/build/build-torque.xml:580:
> Exception thrown by 'generator.parse'. For more information consult the
> velocity log, or invoke ant with the -debug flag.
>
> ------------------------------------------------------------------
>
> This is the output I get when running ant 1.3:
>
> Buildfile: build.xml
>
> check-webinf-exists:
>
> setup-webinf:
>
> init:
>
> setup:
>
> init-tasks:
>
> create-database:
>
> project-create-db-classpath:
>       [echo]
>        driver="org.postgresql.Driver"
>        url="jdbc:postgresql://localhost:5432/newapp"
>        userid="postgres"
>        password="XXXXXX"
>
>
> BUILD FAILED
>
>
>
> /usr/local/tdk/webapps/newapp/WEB-INF/build/build-torque.xml:580: Could
> not create task of type: torque-create-db due to java.lang.VerifyError:
> (class: org/apache/velocity/texen/ant/TexenTask, method: setTemplatePath
> signature: (Ljava/lang/String;)V) Incompatible type for getting or
> setting field
> --- Nested Exception ---
> java.lang.VerifyError: (class: org/apache/velocity/texen/ant/TexenTask,
> method: setTemplatePath signature: (Ljava/lang/String;)V) Incompatible
> type for getting or setting field
>          at java.lang.Class.newInstance0(Native Method)
>          at java.lang.Class.newInstance(Class.java:254)
>          at org.apache.tools.ant.Project.createTask(Project.java:439)
>          at
> org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:83)
>          at org.apache.tools.ant.Target.execute(Target.java:152)
>          at org.apache.tools.ant.Project.runTarget(Project.java:898)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>          at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
>          at org.apache.tools.ant.Target.execute(Target.java:153)
>          at org.apache.tools.ant.Project.runTarget(Project.java:898)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>          at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
>          at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
>          at org.apache.tools.ant.Target.execute(Target.java:153)
>          at org.apache.tools.ant.Project.runTarget(Project.java:898)
>          at org.apache.tools.ant.Project.executeTarget(Project.java:536)
>          at org.apache.tools.ant.Project.executeTargets(Project.java:510)
>          at org.apache.tools.ant.Main.runBuild(Main.java:421)
>          at org.apache.tools.ant.Main.main(Main.java:149)
>
> --
> ****************************************************
> SofTrust Consulting GmbH
> Wolfgang Schur              Tel: ++49-69-857007-20
> Pirazzistrasse 12 A         Fax: ++49-69-857007-22
> D-63067 Offenbach           Email: wolfgang.schur@softrust.com
> Germany
> ****************************************************
>
>
> --
> 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>