db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Mcminn" <NMcm...@theblragency.com>
Subject RE: Torque and Maven question
Date Thu, 11 Mar 2004 20:08:07 GMT
> 1. What's at line 93 of BaseSurveyReportDefinitionParameterPeer.java ?

It is a line that sends the error message to the log when an exception
occurs in the torque-generated class.

> You can tell Maven to use another Torque jar by changing the
"project.xml" found in the torque plugin dir.

That did it.  Turns out Maven was generating the Torque files from an
older snapshot build that shouldn't have been there.  Thanks for the
tip.

However, I now have another issue related to generating the torque
files.  Here is Maven's output:

torque:init:

torque:om-check:

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

torque:om-generate:
Using contextProperties file:
C:\SOURCE~1\NEO-MA~1\NEO\project.properties
    [torque-data-model] Using classpath
log4j:ERROR Could not find value for key
log4j.appender.org.apache.torque.engine

log4j:ERROR Could not instantiate appender named
"org.apache.torque.engine".
    [torque-data-model] Generating to file
C:\sourceCode\neo-master\neo\src\java
\report.nequalsone.om.generation

BUILD FAILED
null:226:49: <torque-data-model> org/apache/commons/logging/LogFactory
Total time:  7 seconds

Doesn't Torque use log4j to handle logging?  Do I need to have the key
log4j.appender.org.apache.torque.engine defined in my Torque.properties?

I found the following thread in the torque-users list archive, but it
doesn't look like it was ever resolved.

http://www.mail-archive.com/torque-user@db.apache.org/msg01819.html 

--------------------------------------------
Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:nmcminn@NequalsOne.com
http://www.NequalsOne.com 

-----Original Message-----
From: Florin Vancea [mailto:fvancea@maxiq.ro] 
Sent: Thursday, March 11, 2004 11:19 AM
To: torque-dev@db.apache.org
Subject: Re: Torque and Maven question

1. What's at line 93 of BaseSurveyReportDefinitionParameterPeer.java ?

2. You can tell Maven to use another Torque jar by changing the
"project.xml" found in the torque plugin dir.
Look into the plugins dir for maven-torque-pluginXXX dir, then inside
that
you'll find a "project.xml" file.
Inside that file you'll find a <dependencies> section, and inside that
there's a dependency for torque. You'll figure from there.
If not, come back here.

HTH, Florin

----- Original Message ----- 
From: "Nathan Mcminn" <NMcminn@theblragency.com>
To: <torque-dev@db.apache.org>
Sent: Thursday, March 11, 2004 6:35 PM
Subject: Torque and Maven question


I have previously posted this message to the Torque users list, and it
was suggested that I post it here as nobody really had an answer.

We have a fairly large application developed using
Torque/Turbine/Velocity, and we are using Maven to manage the project.
The Torque plugin for Maven appears to work when generating my Torque
files, but compiling them fails with the following error:

C:\SOURCE~1\NEO-MA~1\NEO\src\java\com\nequalsone\om\BaseSurveyReportDefi
nitionParameterPeer.java:93: cannot resolve symbol
symbol  : variable category
location: class
com.nequalsone.om.BaseSurveyReportDefinitionParameterPeer
                category.error("Could not initialize Peer", e);

The version of Torque used is 3.1.  I am using a custom base class and a
custom base peer, and "category" isn't defined in either one.  It has
been suggested that this may have something to do with log4j being used
for logging.  I am still fairly new to Torque, and would appreciate any
pointers.
--------------------------------------------
Nathan McMinn
Application Developer
NequalsOne - HealthCare marketing tools
mailto:nmcminn@NequalsOne.com
http://www.NequalsOne.com




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


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


Mime
View raw message