db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mirna Ajanovic" <m_ajano...@hotmail.com>
Subject ResourceNotFoundException when running with mssql
Date Wed, 05 Mar 2003 03:04:38 GMT
I'm new to torque and am trying to run the tutorial.  I have managed to
successfully run the following command running torque with sql server:
ant -f build-torque.xml.  But when I try to create the database with this
command: ant -f build-torque.xml create-db, I get the following error

BUILD FAILED
file:C:/Tools/torque/3.0/build-torque.xml:285: 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:564)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
--- Nested Exception ---
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'sql/db-init/mssql/createdb.vm'
        at
org.apache.velocity.runtime.resource.ResourceManagerImpl.loadResource(Resour
ceManagerImpl.java:501)
        at
org.apache.velocity.runtime.resource.ResourceManagerImpl.getResource(Resourc
eManagerImpl.java:384)
        at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:814)
        at
org.apache.velocity.runtime.RuntimeInstance.getTemplate(RuntimeInstance.java
:796)
        at
org.apache.velocity.runtime.RuntimeSingleton.getTemplate(RuntimeSingleton.ja
va:337)
        at org.apache.velocity.app.Velocity.getTemplate(Velocity.java:512)
        at
org.apache.velocity.texen.Generator.getTemplate(Generator.java:321)
        at org.apache.velocity.texen.Generator.parse(Generator.java:390)
        at org.apache.velocity.texen.Generator.parse(Generator.java:361)
        at org.apache.velocity.texen.Generator.parse(Generator.java:340)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:260
)
        at
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.ja
va:207)
        at
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.jav
a:250)
        at
org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:27
1)
        at org.apache.velocity.Template.merge(Template.java:296)
        at org.apache.velocity.texen.Generator.parse(Generator.java:451)
        at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:552)
        at org.apache.tools.ant.Task.perform(Task.java:317)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:334)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
        at org.apache.tools.ant.Main.runBuild(Main.java:610)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

If anyone has ran into the same problem, I would greatly appreciate youe
help.

Thanks,
Mirna

Mime
View raw message