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 se...@wanadoo.es on 2004/08/22 19:14:47 UTC

[torque-sql] Cannot get default properties!

Hi!



i'm new to OJB and i'm having a few problems. I think i've followed correctly all the steps from de "Getting Started" tutorial.



I have moved the tutorial1 directory from tutorials-src.jar to the src\java\org\apache\ojb and also the repository_user.xml to src/resources



when running "ant build" there are no problems, the error becomes when trying to run "ant setup-db" to create the database.



Firstly i'm using the hsqldb driver so i don't need to change anything in the build.properties file neither the build.xml. 



this is the error:



sql-classpath:

[torque-sql] Using contextProperties file: C:\OJB2\PROYECTO\build.properties

[torque-sql] Using classpath

[torque-sql] Cannot get default properties!

[torque-sql] Generating to file C:\ojb2\proyecto\build\resources\report.ojb_blank.sql.generation

[torque-sql] Parsing file: 'ojbcore-schema.xml'

[torque-sql] Parsing file: 'project-schema.xml'

BUILD FAILED

C:\OJB2\PROYECTO\build.xml:130: Following error occured while executing this line

C:\OJB2\PROYECTO\src\schema\build-torque.xml:200: Following error occured while executing this line

C:\OJB2\PROYECTO\src\schema\build-torque.xml:214: Generation failed. For more information consult the velocity log, or i

nvoke ant with the -debug flag.



any help? thanks


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


Re: [torque-sql] Cannot get default properties!

Posted by Armin Waibel <ar...@apache.org>.
Hi,

did you tried running ant with the debug flag to get more detailed error 
message?

regards
Armin

sergiovelasco@wanadoo.es wrote:

> Hi!
> 
> 
> 
> i'm new to OJB and i'm having a few problems. I think i've followed correctly all the steps from de "Getting Started" tutorial.
> 
> 
> 
> I have moved the tutorial1 directory from tutorials-src.jar to the src\java\org\apache\ojb and also the repository_user.xml to src/resources
> 
> 
> 
> when running "ant build" there are no problems, the error becomes when trying to run "ant setup-db" to create the database.
> 
> 
> 
> Firstly i'm using the hsqldb driver so i don't need to change anything in the build.properties file neither the build.xml. 
> 
> 
> 
> this is the error:
> 
> 
> 
> sql-classpath:
> 
> [torque-sql] Using contextProperties file: C:\OJB2\PROYECTO\build.properties
> 
> [torque-sql] Using classpath
> 
> [torque-sql] Cannot get default properties!
> 
> [torque-sql] Generating to file C:\ojb2\proyecto\build\resources\report.ojb_blank.sql.generation
> 
> [torque-sql] Parsing file: 'ojbcore-schema.xml'
> 
> [torque-sql] Parsing file: 'project-schema.xml'
> 
> BUILD FAILED
> 
> C:\OJB2\PROYECTO\build.xml:130: Following error occured while executing this line
> 
> C:\OJB2\PROYECTO\src\schema\build-torque.xml:200: Following error occured while executing this line
> 
> C:\OJB2\PROYECTO\src\schema\build-torque.xml:214: Generation failed. For more information consult the velocity log, or i
> 
> nvoke ant with the -debug flag.
> 
> 
> 
> any help? thanks
> 
> 
> ---------------------------------------------------------------------
> 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