I'm following the *excellent* Torque Tutorial
(http://www.kazmier.com/~kaz/torque/tutorial.html).
(The author of which should take credit/blame for his
work by putting his name on the silly thing!)
I have followed the directions to the point of
generating my OM classes using "ant project-om". I am
using the nightly build (2/5/02) & Ant 1.4.1.
After generating what seems to be most of the base
clasess, "ant -debug project-om" exits with the
following exception, the complete stack trace for
which is at the bottom of this email:
org.apache.velocity.exception.ResourceNotFoundException:
Unable to find resource 'om/Object.vm'
However, velocity.log contains the following line at
the very end of the file:
2002-02-12 15:12:07,985 - ResourceManager : found
om/Object.vm with loader
org.apache.velocity.runtime.resource.loader.FileResourceLoader
I would appreciate any help.
Thanks,
Ryan Campbell
-------------Stake Trace Follows
/torque/build.xml:394: Exception thrown by
'generator.parse'. For more information consult the\
velocity log, or invoke ant with the -debug flag.
at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)
at
org.apache.tools.ant.Task.perform(Task.java:217)
at
org.apache.tools.ant.Target.execute(Target.java:184)
at
org.apache.tools.ant.Target.performTasks(Target.java:202)
at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
at
org.apache.tools.ant.Project.executeTargets(Project.java:560)
at
org.apache.tools.ant.Main.runBuild(Main.java:454)
at
org.apache.tools.ant.Main.start(Main.java:153)
at
org.apache.tools.ant.Main.main(Main.java:176)
--- Nested Exception ---
org.apache.velocity.exception.ResourceNotFoundException:
Unable to find resource 'om/Object.vm'
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(ResourceManagerImpl.java)
at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(ResourceManagerImpl.java)
at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java)
at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java)
at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.java)
at
org.apache.velocity.app.Velocity.getTemplate(Velocity.java)
at
org.apache.velocity.texen.Generator.parse(Generator.java)
at java.lang.reflect.Method.invoke(Native
Method)
at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java)
at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java)
at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java)
at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java)
at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java)
at
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java)
at
org.apache.velocity.runtime.directive.Foreach.render(Foreach.java)
at
org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java)
at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java)
at
org.apache.velocity.Template.merge(Template.java)
at
org.apache.velocity.texen.Generator.parse(Generator.java)
at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:104)
at
org.apache.tools.ant.Task.perform(Task.java:217)
at
org.apache.tools.ant.Target.execute(Target.java:184)
at
org.apache.tools.ant.Target.performTasks(Target.java:202)
at
org.apache.tools.ant.Project.executeTarget(Project.java:601)
at
org.apache.tools.ant.Project.executeTargets(Project.java:560)
at
org.apache.tools.ant.Main.runBuild(Main.java:454)
at
org.apache.tools.ant.Main.start(Main.java:153)
at
org.apache.tools.ant.Main.main(Main.java:176)
Total time: 1 minute 17 seconds
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>