You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marc Dugger <ma...@socotech.com> on 2003/10/28 01:26:46 UTC

RE: need more logging info from torque goals (repost)

I've included my maven out below.  I cannot find any solutions for
initializing log4j in maven in list archives or google.  I also tried to set
Ant debug flag using a environment variable, but did not work.  I'd
appreciate any suggestions from the list.  Thanks in advance.


clean:

torque:init:

torque:om-check:

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

torque:om-generate:
    [torque-data-model] Generating to file
C:\Code\loanauditor\src\java\report.loanauditor.om.generation
log4j:WARN No appenders could be found for logger
(org.apache.torque.engine.database.transform.XmlToAppData).
log4j:WARN Please initialize the log4j system properly.

BUILD FAILED
File...... file:/C:/Documents and
Settings/marc/.maven/plugins/maven-torque-plugin-3.1/
Element... torque-data-model
Line...... 242
Column.... 49
Generation failed. For more information consult the velocity log, or invoke
ant with the -debug flag.
Total time:  3 seconds



> -----Original Message-----
> From: Marc Dugger [mailto:marc@socotech.com]
> Sent: Monday, October 27, 2003 2:04 PM
> To: users@maven.apache.org
> Subject: need more logging info from torque goals
>
>
> I'm receiving a 'BUILD FAILED' for torque:om, but cannot debug because the
> logging is minimal.  '-X' does not help.  How can I specify the log4j prop
> file Maven uses so that I may receive some meaningful logging?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: need more logging info from torque goals (repost)

Posted by Marc Dugger <ma...@socotech.com>.
2003-10-27 18:16:17,367 - SimpleLog4JLogSystem initialized using logfile
'velocity.log'
2003-10-27 18:16:17,367 -
**************************************************************
2003-10-27 18:16:17,367 - Starting Jakarta Velocity v1.3
2003-10-27 18:16:17,367 - RuntimeInstance initializing.
2003-10-27 18:16:17,367 - Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
2003-10-27 18:16:17,367 - Trying to use logger class
org.apache.velocity.runtime.log.AvalonLogSystem
2003-10-27 18:16:17,367 - Couldn't find class
org.apache.velocity.runtime.log.AvalonLogSystem or necessary supporting
classes in classpath. Exception : java.lang.NoClassDefFoundError:
org/apache/log/format/Formatter
2003-10-27 18:16:17,367 - Trying to use logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2003-10-27 18:16:17,367 - Using logger class
org.apache.velocity.runtime.log.SimpleLog4JLogSystem
2003-10-27 18:16:17,367 - Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
2003-10-27 18:16:17,367 - Resource Loader Instantiated:
org.apache.velocity.runtime.resource.loader.FileResourceLoader
2003-10-27 18:16:17,367 - FileResourceLoader : initialization starting.
2003-10-27 18:16:17,377 - FileResourceLoader : adding path
'C:\Code\loanauditor\src\vtl'
2003-10-27 18:16:17,377 - FileResourceLoader : initialization complete.
2003-10-27 18:16:17,377 - ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
2003-10-27 18:16:17,377 - Default ResourceManager initialization complete.
2003-10-27 18:16:17,377 - Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
2003-10-27 18:16:17,377 - Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
2003-10-27 18:16:17,377 - Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
2003-10-27 18:16:17,387 - Loaded System Directive:
org.apache.velocity.runtime.directive.Include
2003-10-27 18:16:17,387 - Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
2003-10-27 18:16:17,547 - Created: 20 parsers.
2003-10-27 18:16:17,547 - Velocimacro : initialization starting.
2003-10-27 18:16:17,547 - Velocimacro : adding VMs from VM library template
: VM_global_library.vm
2003-10-27 18:16:17,547 - ResourceManager : unable to find resource
'VM_global_library.vm' in any resource loader.
2003-10-27 18:16:17,547 - Velocimacro : error using  VM library template
VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
2003-10-27 18:16:17,547 - Velocimacro :  VM library template macro
registration complete.
2003-10-27 18:16:17,547 - Velocimacro : allowInline = true : VMs can be
defined inline in templates
2003-10-27 18:16:17,547 - Velocimacro : allowInlineToOverride = false : VMs
defined inline may NOT replace previous VM definitions
2003-10-27 18:16:17,547 - Velocimacro : allowInlineLocal = false : VMs
defined inline will be  global in scope if allowed.
2003-10-27 18:16:17,547 - Velocimacro : messages on  : VM system will output
logging messages
2003-10-27 18:16:17,547 - Velocimacro : autoload off  : VM system will not
automatically reload global library macros
2003-10-27 18:16:17,547 - Velocimacro : initialization complete.
2003-10-27 18:16:17,547 - Velocity successfully started.



> -----Original Message-----
> From: dion@multitask.com.au [mailto:dion@multitask.com.au]
> Sent: Monday, October 27, 2003 6:46 PM
> To: Maven Users List
> Subject: RE: need more logging info from torque goals (repost)
>
>
> What was in the velocity.log?
> --
> dIon Gillard, Multitask Consulting
> Blog:      http://blogs.codehaus.org/people/dion/
> Pub Key:http://blogs.codehaus.org/people/dion/public-key.asc
>
>
> "Marc Dugger" <ma...@socotech.com> wrote on 28/10/2003 11:26:46 AM:
>
> > I've included my maven out below.  I cannot find any solutions for
> > initializing log4j in maven in list archives or google.  I also
> tried to
> set
> > Ant debug flag using a environment variable, but did not work.  I'd
> > appreciate any suggestions from the list.  Thanks in advance.
> >
> >
> > clean:
> >
> > torque:init:
> >
> > torque:om-check:
> >
> > torque:om:
> > Overriding previous definition of reference to torque-classpath
> > torque:init:
> > Overriding previous definition of reference to torque-classpath
> >
> > torque:om-generate:
> >     [torque-data-model] Generating to file
> > C:\Code\loanauditor\src\java\report.loanauditor.om.generation
> > log4j:WARN No appenders could be found for logger
> > (org.apache.torque.engine.database.transform.XmlToAppData).
> > log4j:WARN Please initialize the log4j system properly.
> >
> > BUILD FAILED
> > File...... file:/C:/Documents and
> > Settings/marc/.maven/plugins/maven-torque-plugin-3.1/
> > Element... torque-data-model
> > Line...... 242
> > Column.... 49
> > Generation failed. For more information consult the velocity log, or
> invoke
> > ant with the -debug flag.
> > Total time:  3 seconds
> >
> >
> >
> > > -----Original Message-----
> > > From: Marc Dugger [mailto:marc@socotech.com]
> > > Sent: Monday, October 27, 2003 2:04 PM
> > > To: users@maven.apache.org
> > > Subject: need more logging info from torque goals
> > >
> > >
> > > I'm receiving a 'BUILD FAILED' for torque:om, but cannot
> debug because
> the
> > > logging is minimal.  '-X' does not help.  How can I specify the log4j
> prop
> > > file Maven uses so that I may receive some meaningful logging?
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: need more logging info from torque goals (repost)

Posted by di...@multitask.com.au.
What was in the velocity.log?
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/
Pub Key:http://blogs.codehaus.org/people/dion/public-key.asc


"Marc Dugger" <ma...@socotech.com> wrote on 28/10/2003 11:26:46 AM:

> I've included my maven out below.  I cannot find any solutions for
> initializing log4j in maven in list archives or google.  I also tried to 
set
> Ant debug flag using a environment variable, but did not work.  I'd
> appreciate any suggestions from the list.  Thanks in advance.
> 
> 
> clean:
> 
> torque:init:
> 
> torque:om-check:
> 
> torque:om:
> Overriding previous definition of reference to torque-classpath
> torque:init:
> Overriding previous definition of reference to torque-classpath
> 
> torque:om-generate:
>     [torque-data-model] Generating to file
> C:\Code\loanauditor\src\java\report.loanauditor.om.generation
> log4j:WARN No appenders could be found for logger
> (org.apache.torque.engine.database.transform.XmlToAppData).
> log4j:WARN Please initialize the log4j system properly.
> 
> BUILD FAILED
> File...... file:/C:/Documents and
> Settings/marc/.maven/plugins/maven-torque-plugin-3.1/
> Element... torque-data-model
> Line...... 242
> Column.... 49
> Generation failed. For more information consult the velocity log, or 
invoke
> ant with the -debug flag.
> Total time:  3 seconds
> 
> 
> 
> > -----Original Message-----
> > From: Marc Dugger [mailto:marc@socotech.com]
> > Sent: Monday, October 27, 2003 2:04 PM
> > To: users@maven.apache.org
> > Subject: need more logging info from torque goals
> >
> >
> > I'm receiving a 'BUILD FAILED' for torque:om, but cannot debug because 
the
> > logging is minimal.  '-X' does not help.  How can I specify the log4j 
prop
> > file Maven uses so that I may receive some meaningful logging?
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org