Hi,
I have downloaded source (db-ojb-1.0.1-src.zip) -> unzipped in a
folder (D:\Data\Ashish\OpenSourceProjects) -> run command "ant junit"

I am running OpenCMS test with default setting.

I ended up with Build Failed.

Where I am wrong please let me know.

Regards,
Ashish Srivastava



.............
..........
    [javac] 
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\srctest\org\apache\ojb\otm\MtoNTest.java:123:
warning: setCascadeStore(boolean) in
org.apache.ojb.broker.metadata.ObjectReferenceDescri
ptor has been deprecated
    [javac]                     cod.setCascadeStore(autoUpdate);
    [javac]                            ^
    [javac] 
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\srctest\org\apache\ojb\otm\MtoNTest.java:131:
warning: getCascadeStore() in
org.apache.ojb.broker.metadata.ObjectReferenceDescriptor ha
s been deprecated
    [javac]             boolean autoUpdate = cod.getCascadeStore();
    [javac]                                         ^
    [javac] 
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\srctest\org\apache\ojb\otm\MtoNTest.java:133:
warning: setCascadeStore(boolean) in
org.apache.ojb.broker.metadata.ObjectReferenceDescri
ptor has been deprecated
    [javac]             cod.setCascadeStore(true);
    [javac]                    ^
    [javac] 
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\srctest\org\apache\ojb\otm\MtoNTest.java:159:
warning: setCascadeStore(boolean) in
org.apache.ojb.broker.metadata.ObjectReferenceDescri
ptor has been deprecated
    [javac]                     cod.setCascadeStore(autoUpdate);
    [javac]                            ^
    [javac] 35 warnings
    [javac] Compiling 85 source files to
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\classestools

checkP6Spy:

useP6Spy:

dontUseP6Spy:
     [echo] NOT using P6Spy to trace JDBC calls.

prepare-repository:
     [copy] Copying 26 files to
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test\ojb
     [copy] Copying 1 file to
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test
     [copy] Copying 1 file to
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test

prepare-testdb:
     [copy] Copying 4 files to
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test

initJNETSQLServer:

getJSQLDriver:

check-use-classpath:

check-run-only-on-schema-change:

sql-check:

sql:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating SQL for YOUR Torque project!  |
     [echo] | Woo hoo!                                 |
     [echo] |                                          |
     [echo] +------------------------------------------+

sql-classpath:
[torque-sql] Using contextProperties file:
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\build.properties
[torque-sql] Using classpath
[torque-sql] Generating to file
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test\sql\report.ojbtest.sql.generation
[torque-sql] Parsing file: 'ojbcore-schema.xml'
[torque-sql] (transform.DTDResolver               128 ) Resolver: used
database.dtd from org.apache.torque.engine.database.transform package
[torque-sql] Parsing file: 'ojbtest-schema.xml'
[torque-sql] (transform.DTDResolver               128 ) Resolver: used
database.dtd from org.apache.torque.engine.database.transform package

sql-template:

create-db-check:

create-db:
[torque-data-model] Using classpath
[torque-data-model] Generating to file
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test\sql\create-db.sql
[torque-data-model] Parsing file: 'ojbcore-schema.xml'
[torque-data-model] (transform.DTDResolver               128 )
Resolver: used database.dtd from
org.apache.torque.engine.database.transform package
[torque-data-model] Parsing file: 'ojbtest-schema.xml'
[torque-data-model] (transform.DTDResolver               128 )
Resolver: used database.dtd from
org.apache.torque.engine.database.transform package
     [echo]
     [echo]       Executing the create-db.sql script ...
     [echo]
      [sql] Executing file:
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test\sql\create-db.sql
      [sql] Failed to execute: ECHO Not implemented
      [sql] java.sql.SQLException: Unexpected token: ECHO in statement
[ECHO Not implemented]
      [sql] 0 of 1 SQL statements executed successfully

datasql:
     [echo] +-----------------------------------------------+
     [echo] |                                               |
     [echo] | Generating SQL from data XML !                |
     [echo] | Woo hoo!                                      |
     [echo] |                                               |
     [echo] +-----------------------------------------------+
[torque-data-sql] Using contextProperties file:
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\build.properties
[torque-data-sql] Using classpath
[torque-data-sql] Generating to file
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test\sql\ojbtest-data.sql
[torque-data-sql] Parsing file: 'ojbtest-schema.xml'
[torque-data-sql] (transform.DTDResolver               128 ) Resolver:
used database.dtd from org.apache.torque.engine.database.transform
package
[torque-data-sql] Resolver: used
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test\ojbtest-data.dtd

insert-sql:
[torque-sql-exec] Our new url -> jdbc:hsqldb:target/test/OJB
[torque-sql-exec] Executing file:
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test\sql\ojbtest-schema.sql
[torque-sql-exec] Executing file:
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test\sql\ojbcore-schema.sql
[torque-sql-exec] Executing file:
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1\target\test\sql\ojbtest-data.sql
[torque-sql-exec] 377 of 377 SQL statements executed successfully

junit-no-compile-no-prepare:

BUILD FAILED
file:D:/Data/Ashish/OpenSourceProjects/db-ojb-1.0.1/build.xml:979:
Could not create 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:
 - You have misspelt 'junit'.
   Fix: check your spelling.
 - The task needs an external JAR file to execute
   and this is not found at the right place in the classpath.
   Fix: check the documentation for dependencies.
   Fix: declare the task.
 - The task is an Ant optional task and optional.jar is absent
   Fix: look for optional.jar in ANT_HOME/lib, download if needed
 - The task was not built into optional.jar as dependent
   libraries were not found at build time.
   Fix: look in the JAR to verify, then rebuild with the needed
   libraries, or download a release version from apache.org
 - The build file was written for a later version of Ant
   Fix: upgrade to at least the latest release version of Ant
 - The task is not an Ant core or optional task
   and needs to be declared using <taskdef>.

Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath

Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.

Total time: 2 minutes 48 seconds
D:\Data\Ashish\OpenSourceProjects\db-ojb-1.0.1>




On Tue, 4 Jan 2005 12:57:49 +0100, Thomas Dudziak <[EMAIL PROTECTED]> wrote:
> On Tue, 4 Jan 2005 17:09:41 +0530, Ashish Srivastava
> <[EMAIL PROTECTED]> wrote:
> 
> > I am new to this project, I am trying to run its test cases but
> > getting following error:
> > I dont know how can I get jdo.jar. I also visited at
> > http://java.sun.com/products/jdo which has mentioned in the error
> > message but even though I could not get through..
> >
> > any clue?
> 
> On the page you mentioned you have to click on the  "JDO Specification
> (JSR 12)" link and there is a link to the "JDO Reference
> Implementation Binary" which is what you want.
> However you might want to wait as Apache is about to start a specific
> JDO project. If you want to use JDO right now, then you might be
> better off using an open source JDO impl like JPOX. Otherwise it would
> be easier to start with OJB's PersistenceBroker API and then upgrade
> once the Apache JDO project is available (which will be usable with
> OJB).
> 
> > Does any one tested this product with Daffodil's one$db?
> 
> Not yet, but you're welcome to do so and we would support you there!
> 
> Tom
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to