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 Fri, 12 Mar 2004 15:50:54 GMT
> I never bothered to set it up right as it_does_not_break_the_build

Hmm.  It broke mine.  However, after upgrading from 1.0 beta8 to 1.0
rc1, I no longer have this issue.  I do have a few other problems.  But
those are maven questions, not Torque questions.  Thank you very much
for you insight, between this and the users list I found out exactly
what I needed.

--------------------------------------------
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: Friday, March 12, 2004 12:01 AM
To: Apache Torque Developers List
Subject: Re: Torque and Maven question

I've seen errors about logging popping occasionally in my Maven builds,
Torque or not Torque related, but they did not prevent the build from
succeeding. It's for sure the log4j.properties missing and I never
bothered
to set it up right as it_does_not_break_the_build.

More likely you are seeing a byproduct of having different Log4j
versions in
the various parts involved.
There was a change in Log4j package at some time ago and the pre- and
post-versions are not mixing well together.
Hunt and compare for log4j versions in
%MAVEN_HOME%/plugins/**/project.xml
and in your project.xml (and any of your otherwise stated dependencies).
Be careful about using the <classloader> tag in a dependency. It can do
as
much good as it can do evil.
Due to classloading architecture in earlier versions of Maven, some of
the
essential packages are loaded early and that version get "seen"
unexpectedly, despite any other efforts. I hear thet the latest Maven
got
rid of this issue, but I did not have the chance to try it yet. Maybe
you
will.

F.

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


> > 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
>
>



---------------------------------------------------------------------
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