This is certainly a problem: Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : autoload off : VM system will not automatically reload global library macros
Which sounds like it explains this line:
Sun Mar 13 12:45:04 EST 2005 [error] ResourceManager : unable to find resource 'sql/base/Control.vm' in any resource loader.
Which makes total sense why the om task would fail. The .vm files are the ones responsible for generating your Java classes such as the Bases, Peers, etc. But they're located in the torque-gen-3.1.1.jar file. If you extract that jar, you'll find it in the om directory (edit the ExtensionObject.vm if you want to add your own Java code to be autogenerated by the way). You do have both the torque and torque-gen jars in your build path correct? If it can't locate the .vm files, it sounds like it's not finding the torque-gen-3.1.1.jar file in your build path. I'm not sure what that VM_global_library.vm error is, I get that all of the time except all of my stuff generates just fine. Double check stuff and then if that doesn't work get back to us. Can you offer us more information? What type of database are you connecting to?
-Brandon
----- Original Message ----- From: <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, March 13, 2005 2:28 PM
Subject: help: unable to find resource 'VM_global_library.vm'
I'm using torque for this first time today, so yes, this is a newbie question.
I'm using the torque with ant (build-torque.xml) as opposed to maven.
the "jdbc" target completes fine, and my schema xml file is produced, but the "om" task fails miserably. Here's the velocity.log file:
Sun Mar 13 12:45:04 EST 2005 [debug] AvalonLogSystem initialized using
logfile 'velocity.log'
Sun Mar 13 12:45:04 EST 2005 [info]
**************************************************************
Sun Mar 13 12:45:04 EST 2005 [info] Starting Jakarta Velocity v1.3.1
Sun Mar 13 12:45:04 EST 2005 [info] RuntimeInstance initializing.
Sun Mar 13 12:45:04 EST 2005 [info] Default Properties File:
org\apache\velocity\runtime\defaults\velocity.properties
Sun Mar 13 12:45:04 EST 2005 [info] Trying to use logger class
org.apache.velocity.runtime.log.AvalonLogSystem
Sun Mar 13 12:45:04 EST 2005 [info] Using logger class
org.apache.velocity.runtime.log.AvalonLogSystem
Sun Mar 13 12:45:04 EST 2005 [info] Default ResourceManager initializing.
(class org.apache.velocity.runtime.resource.ResourceManagerImpl)
Sun Mar 13 12:45:04 EST 2005 [info] Resource Loader Instantiated:
org.apache.velocity.runtime.resource.loader.FileResourceLoader
Sun Mar 13 12:45:04 EST 2005 [info] FileResourceLoader : initialization
starting.
Sun Mar 13 12:45:04 EST 2005 [info] FileResourceLoader : adding path
'D:\dev\.eclipse-workspace\torque-gen\wua\templates'
Sun Mar 13 12:45:04 EST 2005 [info] FileResourceLoader : initialization
complete.
Sun Mar 13 12:45:04 EST 2005 [info] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
Sun Mar 13 12:45:04 EST 2005 [info] Default ResourceManager initialization
complete.
Sun Mar 13 12:45:04 EST 2005 [info] Loaded System Directive:
org.apache.velocity.runtime.directive.Literal
Sun Mar 13 12:45:04 EST 2005 [info] Loaded System Directive:
org.apache.velocity.runtime.directive.Macro
Sun Mar 13 12:45:04 EST 2005 [info] Loaded System Directive:
org.apache.velocity.runtime.directive.Parse
Sun Mar 13 12:45:04 EST 2005 [info] Loaded System Directive:
org.apache.velocity.runtime.directive.Include
Sun Mar 13 12:45:04 EST 2005 [info] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach
Sun Mar 13 12:45:04 EST 2005 [info] Created: 20 parsers.
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : initialization starting.
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : adding VMs from VM
library template : VM_global_library.vm
Sun Mar 13 12:45:04 EST 2005 [error] ResourceManager : unable to find
resource 'VM_global_library.vm' in any resource loader.
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : error using VM library
template VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : VM library template
macro registration complete.
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : allowInline = true : VMs
can be defined inline in templates
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : allowInlineToOverride =
false : VMs defined inline may NOT replace previous VM definitions
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : allowInlineLocal = false
: VMs defined inline will be global in scope if allowed.
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : messages on : VM system
will output logging messages
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : autoload off : VM
system will not automatically reload global library macros
Sun Mar 13 12:45:04 EST 2005 [info] Velocimacro : initialization complete.
Sun Mar 13 12:45:04 EST 2005 [info] Velocity successfully started.
Sun Mar 13 12:45:04 EST 2005 [error] ResourceManager : unable to find
resource 'sql/base/Control.vm' in any resource loader.
Can anyone help me resolve this or is this question better suited to a velocity users mailing list?
Thanks,
Ray M
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
