You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Graham Leggett <mi...@sharp.fm> on 2003/04/22 15:18:54 UTC

Upgrade maven from beta8 -> beta9, torque no longer works

Hi all,

I upgraded maven from b8 to b9, ran "maven torque". All the required 
jars were downloaded, and torque was run, but it didn't do anything.

I deleted all the OM java files, expecting them to be recreated, but 
again, maven torque did nothing.

The following is the output of torque. Unfortunately the error messages 
are really vague, so don't tell you exactly what is wrong or missing, or 
where it is expecting to find things:

[minfrin@sam patricia-db]$ maven torque
  __  __
|  \/  |__ Jakarta _ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9-SNAPSHOT


torque:
torque:init:

torque:sql-check:

torque:sql:
torque:init:
Overriding previous definition of reference to torque-classpath

torque:sql-generate:
     [torque-sql] Using classpath
     [torque-sql] Generating to file 
/home/sam/minfrin/src/fma/patricia-db/target/classes/sql/report.patricia.sql.generation

torque:init:
Overriding previous definition of reference to torque-classpath

torque:om-check:

torque:om:
     [echo] Schema files have not changed since last generation.
BUILD SUCCESSFUL
Total time:  17 seconds

The schema files most definitely have changed, and the om files have 
been deleted and are not recreated.

Can anyone translate what the above is trying to tell me what is happening?

My build.properties and project.properties both contain the following 
(the docs say this is supposed to be in project.properties, but b8 
wanted it in build.properties):

torque.project = patricia
torque.database = postgresql
torque.targetPackage = za.co.fma.patricia.database.om

torque.database.createUrl = jdbc:postgresql://localhost:5432/template1
torque.database.buildUrl = jdbc:postgresql://localhost:5432/patricia
torque.database.url = jdbc:postgresql://localhost:5432/patricia
torque.database.driver = org.postgresql.Driver
torque.database.user = fma
torque.database.password = password
torque.database.host = localhost

torque.useClasspath = true
torque.database.name = patricia
# change this to true when we have real data in the database
torque.database.manualCreation = false
# change this to the exception thrown on save
#torque.saveException = Exception
# experiemental
torque.useManagers = true

Regards,
Graham
-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."


Re: Upgrade maven from beta8 -> beta9, torque no longer works

Posted by Graham Leggett <mi...@sharp.fm>.
Quinton McCombs wrote:

> Look for report*generation files and delete them.  

Made no difference.

For reasons unclear, torque neither generates sql files, nor om java 
files, nor complains to the console of any error condition.

My schema file was in schema/patricia-schema.xml -> is this the correct 
location for the schema, or has it moved between versions?

A file called maven.log is generated, which complains about a number of 
unsupported jelly tags like so:

2003-04-22 17:35:35,569 ERROR org.apache.commons.jelly.tags.ant.AntTag - 
Class org.apache.commons.jelly.tags.core.WhenTag doesn't support the 
nested "torque-data-model" element.

Looking inside velocity.log, there are some errors noted, but no 
indication of whether these errors mean anything, or a hint at a solution:

2003-04-22 17:35:31,999 - ResourceManager : unable to find resource 
'VM_global_library.vm' in any resource loader.
2003-04-22 17:35:32,000 - Velocimacro : error using  VM library template 
VM_global_library.vm : 
org.apache.velocity.exception.ResourceNotFoundException: Unable to find 
resource 'VM_global_library.vm'


>>-----Original Message-----
>>From: Graham Leggett [mailto:minfrin@sharp.fm] 
>>Sent: Tuesday, April 22, 2003 8:19 AM
>>To: Turbine Torque Users List
>>Subject: Upgrade maven from beta8 -> beta9, torque no longer works
>>
>>
>>Hi all,
>>
>>I upgraded maven from b8 to b9, ran "maven torque". All the required 
>>jars were downloaded, and torque was run, but it didn't do anything.
>>
>>I deleted all the OM java files, expecting them to be recreated, but 
>>again, maven torque did nothing.
>>
>>The following is the output of torque. Unfortunately the 
>>error messages 
>>are really vague, so don't tell you exactly what is wrong or 
>>missing, or 
>>where it is expecting to find things:
>>
>>[minfrin@sam patricia-db]$ maven torque
>>  __  __
>>|  \/  |__ Jakarta _ ___
>>| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
>>|_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9-SNAPSHOT
>>
>>
>>torque:
>>torque:init:
>>
>>torque:sql-check:
>>
>>torque:sql:
>>torque:init:
>>Overriding previous definition of reference to torque-classpath
>>
>>torque:sql-generate:
>>     [torque-sql] Using classpath
>>     [torque-sql] Generating to file 
>>/home/sam/minfrin/src/fma/patricia-db/target/classes/sql/repor
>>t.patricia.sql.generation
>>
>>torque:init:
>>Overriding previous definition of reference to torque-classpath
>>
>>torque:om-check:
>>
>>torque:om:
>>     [echo] Schema files have not changed since last 
>>generation. BUILD SUCCESSFUL Total time:  17 seconds
>>
>>The schema files most definitely have changed, and the om files have 
>>been deleted and are not recreated.
>>
>>Can anyone translate what the above is trying to tell me what 
>>is happening?
>>
>>My build.properties and project.properties both contain the following 
>>(the docs say this is supposed to be in project.properties, but b8 
>>wanted it in build.properties):
>>
>>torque.project = patricia
>>torque.database = postgresql
>>torque.targetPackage = za.co.fma.patricia.database.om
>>
>>torque.database.createUrl = jdbc:postgresql://localhost:5432/template1
>>torque.database.buildUrl = jdbc:postgresql://localhost:5432/patricia
>>torque.database.url = jdbc:postgresql://localhost:5432/patricia
>>torque.database.driver = org.postgresql.Driver 
>>torque.database.user = fma torque.database.password = 
>>password torque.database.host = localhost
>>
>>torque.useClasspath = true
>>torque.database.name = patricia
>># change this to true when we have real data in the database 
>>torque.database.manualCreation = false # change this to the 
>>exception thrown on save #torque.saveException = Exception # 
>>experiemental torque.useManagers = true
>>
>>Regards,
>>Graham
>>-- 
>>-----------------------------------------
>>minfrin@sharp.fm		"There's a moon
>>					over Bourbon Street
>>						tonight..."
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
>>For additional commands, e-mail: torque-user-help@db.apache.org
>>
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 


-- 
-----------------------------------------
minfrin@sharp.fm		"There's a moon
					over Bourbon Street
						tonight..."


RE: Upgrade maven from beta8 -> beta9, torque no longer works

Posted by Quinton McCombs <qm...@nequalsone.com>.
Look for report*generation files and delete them.  

--------------------------------------------
Quinton McCombs
NequalsOne - HealthCare marketing tools
mailto:qmccombs@NequalsOne.com
http://www.NequalsOne.com 

> -----Original Message-----
> From: Graham Leggett [mailto:minfrin@sharp.fm] 
> Sent: Tuesday, April 22, 2003 8:19 AM
> To: Turbine Torque Users List
> Subject: Upgrade maven from beta8 -> beta9, torque no longer works
> 
> 
> Hi all,
> 
> I upgraded maven from b8 to b9, ran "maven torque". All the required 
> jars were downloaded, and torque was run, but it didn't do anything.
> 
> I deleted all the OM java files, expecting them to be recreated, but 
> again, maven torque did nothing.
> 
> The following is the output of torque. Unfortunately the 
> error messages 
> are really vague, so don't tell you exactly what is wrong or 
> missing, or 
> where it is expecting to find things:
> 
> [minfrin@sam patricia-db]$ maven torque
>   __  __
> |  \/  |__ Jakarta _ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|  v. 1.0-beta-9-SNAPSHOT
> 
> 
> torque:
> torque:init:
> 
> torque:sql-check:
> 
> torque:sql:
> torque:init:
> Overriding previous definition of reference to torque-classpath
> 
> torque:sql-generate:
>      [torque-sql] Using classpath
>      [torque-sql] Generating to file 
> /home/sam/minfrin/src/fma/patricia-db/target/classes/sql/repor
> t.patricia.sql.generation
> 
> torque:init:
> Overriding previous definition of reference to torque-classpath
> 
> torque:om-check:
> 
> torque:om:
>      [echo] Schema files have not changed since last 
> generation. BUILD SUCCESSFUL Total time:  17 seconds
> 
> The schema files most definitely have changed, and the om files have 
> been deleted and are not recreated.
> 
> Can anyone translate what the above is trying to tell me what 
> is happening?
> 
> My build.properties and project.properties both contain the following 
> (the docs say this is supposed to be in project.properties, but b8 
> wanted it in build.properties):
> 
> torque.project = patricia
> torque.database = postgresql
> torque.targetPackage = za.co.fma.patricia.database.om
> 
> torque.database.createUrl = jdbc:postgresql://localhost:5432/template1
> torque.database.buildUrl = jdbc:postgresql://localhost:5432/patricia
> torque.database.url = jdbc:postgresql://localhost:5432/patricia
> torque.database.driver = org.postgresql.Driver 
> torque.database.user = fma torque.database.password = 
> password torque.database.host = localhost
> 
> torque.useClasspath = true
> torque.database.name = patricia
> # change this to true when we have real data in the database 
> torque.database.manualCreation = false # change this to the 
> exception thrown on save #torque.saveException = Exception # 
> experiemental torque.useManagers = true
> 
> Regards,
> Graham
> -- 
> -----------------------------------------
> minfrin@sharp.fm		"There's a moon
> 					over Bourbon Street
> 						tonight..."
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 
> 
>