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 f....@frank-rub.de on 2004/11/15 17:38:02 UTC
ojb 1.0.1 ant junit fails, but absolutey sure, that setup is correct
Hi all,
my problem is that I want to try the ant jnuit test with my oracle8 and
ojb 1.0.1, ant 1.6.2 (binary), current jdo from java.sun.com
ant in path
the build runs fine
with compile and macke tables on database (connection is running)
tables created.
(no errors at all)
but afterwards I try to run: ant junit-no-compile-no-prepare
and the standard error msg pops up:
-----------------------------------------------------
D:\db-ojb-1.0.1-bin\db-ojb-1.0.1-src\db-ojb-1.0.1>ant
junit-no-compile-no-prepare
Buildfile: build.xml
junit-no-compile-no-prepare:
BUILD FAILED
D:\db-ojb-1.0.1-bin\db-ojb-1.0.1-src\db-ojb-1.0.1\build.xml:979: Could
not creat
e task or type of type: junit.
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
...
----------------------------------------------------------------
is there any idea?
because i try to run this test because of problems with my oracle8 db
and ojb 1.0.1 (drescribed earlier in another email)
thank you in advance.
best regards
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: ojb 1.0.1 ant junit fails, but absolutey sure, that setup is
correct
Posted by Thomas Dudziak <to...@first.fhg.de>.
f.rub@frank-rub.de wrote:
>Hi all,
>
>my problem is that I want to try the ant jnuit test with my oracle8 and
>ojb 1.0.1, ant 1.6.2 (binary), current jdo from java.sun.com
>ant in path
>
>the build runs fine
>with compile and macke tables on database (connection is running)
>tables created.
>(no errors at all)
>
>but afterwards I try to run: ant junit-no-compile-no-prepare
>and the standard error msg pops up:
>-----------------------------------------------------
>D:\db-ojb-1.0.1-bin\db-ojb-1.0.1-src\db-ojb-1.0.1>ant
>junit-no-compile-no-prepare
>Buildfile: build.xml
>
>junit-no-compile-no-prepare:
>
>BUILD FAILED
>D:\db-ojb-1.0.1-bin\db-ojb-1.0.1-src\db-ojb-1.0.1\build.xml:979: Could
>not creat
>e task or type of type: junit.
>
>Ant could not find the task or a class this task relies upon.
>
>This is common and has a number of causes; the usual
>solutions are to read the manual pages then download and
>install needed JAR files, or fix the build file:
>...
>----------------------------------------------------------------
>is there any idea?
>because i try to run this test because of problems with my oracle8 db
>and ojb 1.0.1 (drescribed earlier in another email)
>thank you in advance.
>
>
There is probably no junit jar for Ant to use (it doesn't ship with
one). So copy the junit jar from OJB's lib folder to the Ant lib folder
and all should work fine..
Tom
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org