You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Gary Moore <mo...@thomastechsolutions.com> on 2003/09/05 19:10:00 UTC

Newbie build-torque.xml problem

I've seen reference in the archives to the problem below  but haven't 
found the answer.    The torque-3.0.1 jar is in ./lib where as best I 
can tell it should be.   I get the same thing when running 
./bin/build.sh prepare-testdb.   Thanks for any help.
-Gary

Gary Moore
moore@thomastechsolutions.com


moore@gmlinux:~/javaapps/db-ojb-1.0.rc4> ant -f build-torque.xml
Buildfile: build-torque.xml

main:

project-sql:
    [echo] +------------------------------------------+
    [echo] |                                          |
    [echo] | Generating SQL for OJB Testsuite!        |
    [echo] |                                          |
    [echo] +------------------------------------------+

BUILD FAILED
file: /home/moore/javaapps/db-ojb-1.0.rc4/build-torque.xml:61: taskdef 
class org.apache.torque.task.TorqueSQLTask cannot be found

Total time: 4 seconds



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


Build still fails: hanging on ojbtest-schema.sql (SAPDB)

Posted by Joerg Lensing <in...@softcon-lensing.de>.
hi,

I updated to cvs-head now and still the build has some problems (hsqldb: OK)

with _mysql_, the output is:
junit-no-compile-no-prepare:
    [junit] Running org.apache.ojb.broker.AllTests
    [junit] Tests run: 270, Failures: 7, Errors: 5, Time elapsed: 36,421 sec
    [junit] TEST org.apache.ojb.broker.AllTests FAILED
    [junit] Running org.apache.ojb.odmg.AllTests
    [junit] [BOOT] INFO: OJB.properties: 
file:/C:/sichten/db-ojb/target/test/ojb/OJB.properties
    [junit] Tests run: 164, Failures: 2, Errors: 0, Time elapsed: 8,031 sec
    [junit] TEST org.apache.ojb.odmg.AllTests FAILED
    [junit] Running org.apache.ojb.soda.AllTests
    [junit] [BOOT] INFO: OJB.properties: 
file:/C:/sichten/db-ojb/target/test/ojb/OJB.properties
    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1,672 sec
    [junit] Running org.apache.ojb.otm.AllTests
    [junit] Tests run: 76, Failures: 0, Errors: 0, Time elapsed: 11,5 sec
junit-no-compile:
junit:
BUILD SUCCESSFUL
Total time: 1 minute 43 seconds

though the output says: "successful", there are still failures and errors.
But the main reason is: how can I get SAPDB running?
 with _sapdb_, the out put is:
project-insert-sql:
[torque-insert-sql] Our new url -> jdbc:sapdb:OJB
[torque-insert-sql] Executing file: 
C:\sichten\db-ojb\target\src\sql\ojbtest-schema.sql
[torque-insert-sql] Failed to execute: drop table Kategorien cascade
[torque-insert-sql] com.sap.dbtech.jdbc.exceptions.DatabaseException: 
[-4004] (at 12): Unknown table name:KATEGORIEN

the build freezes here:-(

what can I do?

tx joerg





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


Re: build faild with postgres (hsql OK)

Posted by Joerg Lensing <in...@softcon-lensing.de>.
Hi Armin,
your hint was _:-))_

The problem with the build for SAPDB was, that the tables must be
created manually because of an error when trying to delete tables which
didn't exist. If I create the tables before, then the script runs well.
It should be described in the build-docs or be fixed.

tx joerg




Armin Waibel wrote:

> Hi Joerg,
>
> with current CVS head and sapdb all seems ok too (see below - 3 failures,
> errors are todo's).
> Please check the junit-log files. You can find them in
> db-ojb/target/test/test-xxx.txt
>
> regards,
> Armin
>



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


Re: build faild with postgres (hsql OK)

Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Joerg,

with current CVS head and sapdb all seems ok too (see below - 3 failures,
errors are todo's).
Please check the junit-log files. You can find them in
db-ojb/target/test/test-xxx.txt

regards,
Armin


[torque-insert-sql] 522 of 522 SQL statements executed successfully

junit-no-compile-no-prepare:
     [junit] Running org.apache.ojb.broker.AllTests
     [junit] Tests run: 270, Failures: 0, Errors: 1, Time elapsed: 110,188 
sec
     [junit] TEST org.apache.ojb.broker.AllTests FAILED
     [junit] Running org.apache.ojb.odmg.AllTests
     [junit] [BOOT] INFO: OJB.properties: 
file:/E:/intellij/DB_OJB_CLEAN/db-ojb/target/test/ojb/OJB.properties
     [junit] Tests run: 164, Failures: 2, Errors: 0, Time elapsed: 18,487 
sec
     [junit] TEST org.apache.ojb.odmg.AllTests FAILED
     [junit] Running org.apache.ojb.soda.AllTests
     [junit] [BOOT] INFO: OJB.properties: 
file:/E:/intellij/DB_OJB_CLEAN/db-ojb/target/test/ojb/OJB.properties
     [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 2,984 sec
     [junit] Running org.apache.ojb.otm.AllTests
     [junit] Tests run: 76, Failures: 0, Errors: 0, Time elapsed: 17,315 sec


On Mon, 06 Oct 2003 10:29:29 +0200, Joerg Lensing 
<in...@softcon-lensing.de> wrote:

> hi all,
> is there a log-file for junit-tests? The test fails with postgres, but 
> hslq is OK.
> This is the output to the console
>
>
> [torque-insert-sql] 365 of 367 SQL statements executed successfully
>
> junit-no-compile-no-prepare:
>     [junit] Running org.apache.ojb.broker.AllTests
>     [junit] Tests run: 247, Failures: 20, Errors: 184, Time elapsed: 
> 337,75 sec
>     [junit] java.lang.OutOfMemoryError
>     [junit] TEST org.apache.ojb.broker.AllTests FAILED
>     [junit] Running org.apache.ojb.odmg.AllTests
>
> tx joerg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>




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


build faild with postgres (hsql OK)

Posted by Joerg Lensing <in...@softcon-lensing.de>.
hi all,
is there a log-file for junit-tests? The test fails with postgres, but 
hslq is OK.
This is the output to the console


[torque-insert-sql] 365 of 367 SQL statements executed successfully

junit-no-compile-no-prepare:
    [junit] Running org.apache.ojb.broker.AllTests
    [junit] Tests run: 247, Failures: 20, Errors: 184, Time elapsed: 
337,75 sec
    [junit] java.lang.OutOfMemoryError
    [junit] TEST org.apache.ojb.broker.AllTests FAILED
    [junit] Running org.apache.ojb.odmg.AllTests

tx joerg


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