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 16:04:18 UTC

maven b8 + torque v3.0 odd error message

Hi all,

For no reason I can tell offhand, torque stopped working today, giving a 
message like so:

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


torque:main:
     [echo] +------------------------------------------+
     [echo] |                                          |
     [echo] | Generating SQL for YOUR Torque project!  |
     [echo] | Woo hoo!                                 |
     [echo] |                                          |
     [echo] +------------------------------------------+
     [torque-sql] Using contextProperties file: 
/home/sam/minfrin/src/fma/patricia-db/build.properties
     [torque-sql] Using classpath
     [torque-sql] Generating to file 
/home/sam/minfrin/src/fma/patricia-db/src/sql/report.patricia.sql.generation
Resolver: used http://jakarta.apache.org/turbine/dtd/database_3_1.dtd

BUILD FAILED
Generation failed. For more information consult the velocity log, or 
invoke ant with the -debug flag.
Total time:  17 seconds

The above report file supposedly generated is of zero length. Neither 
the OM objects nor the sql is created at all.

Again, the maven.log shows problems with:

2003-04-22 17:58:29,966 ERROR org.apache.commons.jelly.tags.ant.AntTag - 
Class com.werken.werkz.jelly.GoalTag doesn't support the nested "ant" 
element.

The velocity log shows nothing out of the ordinary that I can see.

Is there a way of getting torque to log an actual error message when it 
fails?

I am completely stuck: maven b8 has stopped working, and maven b9 is 
broken out the box. Any suggestions on getting some kind of coherent 
error message out of the torque code?

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


Re: maven b8 + torque v3.0 odd error message

Posted by Emmanuel Florent <ef...@formaguide.com>.
I guess this can happen because you try to reach
 http://jakarta.apache.org/turbine/dtd/database_3_1.dtd
but you're offline. You  may check this by going online.
If you update your ${project}-schema.xml with :

<!DOCTYPE database SYSTEM
"http://jakarta.apache.org/turbine/dtd/database.dtd">

Torque may use it's embeded DTD, and you can go offline again.
Please correct me if 'm wrong.

Emmanuel Florent
eflorent@devaki.org
http://www.devaki.org/

 


On Tue, 2003-04-22 at 16:04, Graham Leggett wrote:
> Hi all,
> 
> For no reason I can tell offhand, torque stopped working today, giving a 
> message like so:
> 
> [minfrin@sam patricia-db]$ maven torque
>   __  __
> |  \/  |__ Jakarta _ ___
> | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
> |_|  |_\__,_|\_/\___|_||_|   v. 1.0-beta-8
> 
> 
> torque:main:
>      [echo] +------------------------------------------+
>      [echo] |                                          |
>      [echo] | Generating SQL for YOUR Torque project!  |
>      [echo] | Woo hoo!                                 |
>      [echo] |                                          |
>      [echo] +------------------------------------------+
>      [torque-sql] Using contextProperties file: 
> /home/sam/minfrin/src/fma/patricia-db/build.properties
>      [torque-sql] Using classpath
>      [torque-sql] Generating to file 
> /home/sam/minfrin/src/fma/patricia-db/src/sql/report.patricia.sql.generation
> Resolver: used http://jakarta.apache.org/turbine/dtd/database_3_1.dtd
> 
> BUILD FAILED
> Generation failed. For more information consult the velocity log, or 
> invoke ant with the -debug flag.
> Total time:  17 seconds
> 
> The above report file supposedly generated is of zero length. Neither 
> the OM objects nor the sql is created at all.
> 
> Again, the maven.log shows problems with:
> 
> 2003-04-22 17:58:29,966 ERROR org.apache.commons.jelly.tags.ant.AntTag - 
> Class com.werken.werkz.jelly.GoalTag doesn't support the nested "ant" 
> element.
> 
> The velocity log shows nothing out of the ordinary that I can see.
> 
> Is there a way of getting torque to log an actual error message when it 
> fails?
> 
> I am completely stuck: maven b8 has stopped working, and maven b9 is 
> broken out the box. Any suggestions on getting some kind of coherent 
> error message out of the torque code?
> 
> Regards,
> Graham