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 Richard Hill <RH...@classmates.com> on 2003/10/14 21:31:56 UTC
log4j:WARN No appenders could be found for logger
Hi, I'm trying a torque example: Installing and Using the Torque Object
Mapper by James M. Turner, using torque-3.0.2. I just ran build-torque.xml
and I'm getting several warning messages:
[torque-sql] log4j:WARN No appenders could be found for logger
(org.apache.torque.engine.database.transform.DTDReso
lver).
[torque-sql] log4j:WARN Please initialize the log4j system properly.
I'm not familiar with log4j...how do you initialize the log4j system
properly?
Thanks,
Richard
---------------------------------------------------------------------------
Full build output:
---------------------------------------------------------------------------
C:\myDev\torque3.0.2_pitcher_example>ant -f build-torque.xml
Buildfile: build-torque.xml
main:
check-use-classpath:
check-run-only-on-schema-change:
sql-check:
sql:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating SQL for YOUR Torque project! |
[echo] | Woo hoo! |
[echo] | |
[echo] +------------------------------------------+
sql-classpath:
sql-template:
[torque-sql] Using contextProperties file:
C:\myDev\torque3.0.2_pitcher_example\build.properties
[torque-sql] Generating to file
C:\myDev\torque3.0.2_pitcher_example\src\sql\report.pitchers.sql.generation
[torque-sql] Parsing file: 'id-table-schema.xml'
[torque-sql] log4j:WARN No appenders could be found for logger
(org.apache.torque.engine.database.transform.DTDReso
lver).
[torque-sql] log4j:WARN Please initialize the log4j system properly.
[torque-sql] Parsing file: 'pitchers-schema.xml'
check-use-classpath:
check-run-only-on-schema-change:
om-check:
om:
[echo] +------------------------------------------+
[echo] | |
[echo] | Generating Peer-based Object Model for |
[echo] | YOUR Torque project! Woo hoo! |
[echo] | |
[echo] +------------------------------------------+
om-classpath:
om-template:
[torque-data-model] Using contextProperties file:
C:\myDev\torque3.0.2_pitcher_example\build.properties
[torque-data-model] Generating to file
C:\myDev\torque3.0.2_pitcher_example\src\java\report.pitchers.om.generation
[torque-data-model] Parsing file: 'pitchers-schema.xml'
[torque-data-model] log4j:WARN No appenders could be found for logger
(org.apache.torque.engine.database.transform.
DTDResolver).
[torque-data-model] log4j:WARN Please initialize the log4j system properly.
BUILD SUCCESSFUL
Total time: 41 seconds
C:\myDev\torque3.0.2_pitcher_example>
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
Re: log4j:WARN No appenders could be found for logger
Posted by Scott Eade <se...@backstagetech.com.au>.
Richard Hill wrote:
>Hi, I'm trying a torque example: Installing and Using the Torque Object
>Mapper by James M. Turner, using torque-3.0.2. I just ran build-torque.xml
>and I'm getting several warning messages:
>
>[torque-sql] log4j:WARN No appenders could be found for logger
>(org.apache.torque.engine.database.transform.DTDReso
>lver).
>[torque-sql] log4j:WARN Please initialize the log4j system properly.
>
>I'm not familiar with log4j...how do you initialize the log4j system
>properly?
>
>
You can safely ignore the log4j configuration warning messages that you
are seeing.
Scott
--
Scott Eade
Backstage Technologies Pty. Ltd.
http://www.backstagetech.com.au
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org