db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pauldecour...@decoursey.net
Subject Getting Started...HELP
Date Mon, 21 Feb 2005 18:11:23 GMT
The tutorial was no help at all.  First of all it doesn't tell you where
to put the files that you create when configuring torque.  Running maven
seems will give you clues after many errors.  But then once I got the
files where they should be I get this error on the velocity log:

Database-specific properties file does not exist:
/Users/pauldecoursey/Projects/Marmoset/sql/base/db.props
org.apache.torque.engine.EngineException: Database-specific properties
file does not exist:
/Users/pauldecoursey/Projects/Marmoset/sql/base/db.props
        at
org.apache.torque.engine.database.model.AppData.getIdiosyncrasies(AppData.java:145)
        at
org.apache.torque.engine.database.model.Database.getProperty(Database.java:335)
        at
org.apache.torque.engine.database.model.ConstraintNameGenerator.generateName(ConstraintNameGenerator.java:62)
        at
org.apache.torque.engine.database.model.NameFactory.generateName(NameFactory.java:113)
        at
org.apache.torque.engine.database.model.Table.acquireConstraintName(Table.java:281)
        at
org.apache.torque.engine.database.model.Table.doNaming(Table.java:254)
        at
org.apache.torque.engine.database.model.Table.doFinalInitialization(Table.java:167)
        at
org.apache.torque.engine.database.model.Database.doFinalInitialization(Database.java:391)
        at
org.apache.torque.engine.database.model.AppData.doFinalInitialization(AppData.java:287)
        at
org.apache.torque.engine.database.model.AppData.getDatabase(AppData.java:191)
        at
org.apache.torque.task.TorqueDataModelTask.initControlContext(TorqueDataModelTask.java:320)
        at
org.apache.torque.task.TorqueSQLTask.initControlContext(TorqueSQLTask.java:189)
        at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:480)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at org.apache.commons.jelly.tags.core.WhenTag.doTag(WhenTag.java:92)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at
org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:84)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
        at
org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:127)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at
org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:87)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at
org.apache.commons.jelly.tags.core.ChooseTag.doTag(ChooseTag.java:84)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at com.werken.werkz.WerkzProject.attainGoal(WerkzProject.java:193)
        at
org.apache.maven.jelly.tags.werkz.MavenAttainGoalTag.doTag(MavenAttainGoalTag.java:127)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(MavenGoalTag.java:79)
        at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.performAction(MavenGoalTag.java:110)
        at com.werken.werkz.Goal.fire(Goal.java:639)
        at com.werken.werkz.Goal.attain(Goal.java:575)
        at
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:671)
        at org.apache.maven.MavenSession.attainGoals(MavenSession.java:263)
        at org.apache.maven.cli.App.doMain(App.java:488)
        at org.apache.maven.cli.App.main(App.java:1239)
        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 com.werken.forehead.Forehead.run(Forehead.java:551)
        at com.werken.forehead.Forehead.main(Forehead.java:581)
java.lang.NullPointerException
java.lang.NullPointerException
        at java.io.Reader.<init>(Reader.java:61)
        at java.io.InputStreamReader.<init>(InputStreamReader.java:80)
        at java.util.Properties.load(Properties.java:266)
        at
org.apache.torque.engine.database.model.AppData.getIdiosyncrasies(AppData.java:135)
        at
org.apache.torque.engine.database.model.Database.getProperty(Database.java:335)
        at
org.apache.torque.engine.database.model.ConstraintNameGenerator.generateName(ConstraintNameGenerator.java:62)
        at org.apache.torque.engine.database.model.NameFactory.genera..
.....
....
and a bunch more.

Of course it won't find that file, I don't have that and it isn't in any
of the downloads.  I've even tried using 3.1 and building it with ANT, but
that gives me all kinds of other errors about classes missing things here
and there.

I'd really like to be able to use torque, I'm am not a database admin, I'm
a web developer.  Torque seems real useful, but I can't get it to work. 
Please help.

Paul DeCoursey




---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message