My project.props look like this, but I still can't get rid of the error
mentioned in my previous email.
# -------------------------------------------------------------------
#
# T O R Q U E S E T T I N G S
#
# -------------------------------------------------------------------
torque.project = audiotex
torque.database = mysql
torque.contextProperties = project.properties
torque.runOnlyOnSchemaChange = true
torque.schema.dir = src/schema
torque.sql.dir = target/sql
torque.java.dir = src/java
torque.doc.dir = target/sql
torque.lib.dir = ${maven.repo.local}
torque.doc.format = html
# Hypothetical configuration...only need to set properties
# when we don't want the default value
torque.targetPackage = de.geoconnect.audiotex.om
torque.addGetByNameMethod = false
torque.addTimeStamp = false
torque.addIntakeRetrievable = true
torque.useManagers = true
torque.useClasspath = true
torque.database.createUrl = jdbc:mysql://localhost:3306/
torque.database.buildUrl = jdbc:mysql://localhost:3306/audiotex
torque.database.url = jdbc:mysql://localhost:3306/audiotex
#torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.driver = com.mysql.jdbc.Driver
torque.database.user = ...
torque.database.password = ...
torque.database.host = localhost
torque.initialID = 1001
Marc
-----Urspr�ngliche Nachricht-----
Von: goa. [mailto:[EMAIL PROTECTED]]
Gesendet: Sonntag, 8. Dezember 2002 18:44
An: Turbine Maven Users List
Betreff: Re: error running torque-plugin
hello,
I have the same problem.
using:
torque-3.0
maven-torque-plugin-3.0.jar
maven 1.0-beta-7
i got
[torque-sql] Generating to file
C:\Java\torque-sandbox\target\sql\report.sandbox.sql.generation
[torque-sql] Resolver: used database.dtd from
org.apache.torque.engine.database.transform package
[torque-sql] [ERROR] java.lang.reflect.InvocationTargetException
in my project.properties there are
torque.project = sandbox
torque.database = mysql
torque.contextProperties = project.properties
torque.runOnlyOnSchemaChange = true
torque.schema.dir = schema
torque.sql.dir = target/sql
torque.java.dir = src/java
torque.doc.dir = target/sql
torque.lib.dir = ${maven.repo.local}
torque.lib.dir = c:/torque/lib
torque.doc.format = html
torque.targetPackage = com.big.sandbox
torque.addGetByNameMethod = false
torque.addTimeStamp = false
torque.addIntakeRetrievable = true
torque.useManagers = true
torque.useClasspath = true
torque.database.createUrl = jdbc:mysql://localhost:3306/
torque.database.buildUrl = jdbc:mysql://localhost:3306/sandbox
torque.database.url = jdbc:mysql://localhost:3306/sandbox
torque.database.driver = org.gjt.mm.mysql.Driver
torque.database.user = mylogin
torque.database.password = mypass
torque.database.host = localhost
torque.initialID = 1001
why that's happening? can anybody help me? sorry for possible silly
question. i'm novice to torque/turbine/maven.
thank you.
goa.
----- Original Message -----
From: "Jeffrey D. Brekke" <[EMAIL PROTECTED]>
To: "Turbine Maven Users List" <[EMAIL PROTECTED]>
Sent: Sunday, December 08, 2002 4:22 AM
Subject: Re: error running torque-plugin
>
> You also need to have all the jars that torque needs in your projects
> dependency list. All should be listed in the how-to for the maven torque
> plugin in the torque docs online.
>
> On Sat, 7 Dec 2002, Marc Lustig wrote:
>
> > Hi,
> > I have installed the torque-plugin.
> > My schema-files are in src/schema/.
> > Torque.props is configured in src/webapp/WEB-INF/conf/.
> > DB-name is configured like this:
> > torque.dsfactory.bookstore.connection.url =
> > jdbc:mysql://localhost:3306/audiotex
> >
> > [Is that sufficient, or is there another place to specifiy the name of
the
> > db ?]
> >
> > Now when I run maven torque:create-db this exception is thrown:
> >
> > [torque-data-model] [ERROR]
java.lang.reflect.InvocationTargetException
> > [torque-data-model] [ERROR] at
> > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Metho
> > d)
> > [torque-data-model] [ERROR] at
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodA
> > ccessorImpl.java:39)
> > [torque-data-model] [ERROR] at
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(Delegatin
> > gMethodAccessorImpl.java:25)
> > [torque-data-model] [ERROR] at
> > java.lang.reflect.Method.invoke(Method.java:324)
> > [torque-data-model] [ERROR] at
> > com.werken.forehead.Forehead.run(Forehead.java:543)
> > [torque-data-model] [ERROR] at
> > com.werken.forehead.Forehead.main(Forehead.java:573)
> > [torque-data-model] [ERROR] Caused by:
java.lang.NoClassDefFoundError:
> > org/apache/stratum/lifecy
> > cle/Initializable
> > [torque-data-model] [ERROR] at
> > java.lang.ClassLoader.defineClass0(Native Method)
> > [torque-data-model] [ERROR] at
> > java.lang.ClassLoader.defineClass(ClassLoader.java:502)
> > [torque-data-model] [ERROR] at
> > java.security.SecureClassLoader.defineClass(SecureClassLo
> > ader.java:123)
> > [torque-data-model] [ERROR] at
> > java.net.URLClassLoader.defineClass(URLClassLoader.java:2
> > 50)
> > [torque-data-model] [ERROR] at
> > java.net.URLClassLoader.access$100(URLClassLoader.java:54
> > )
> > [torque-data-model] [ERROR] at
> > java.net.URLClassLoader$1.run(URLClassLoader.java:193)
> > [torque-data-model] [ERROR] at
> > java.security.AccessController.doPrivileged(Native Method
> > )
> > [torque-data-model] [ERROR] at
> > java.net.URLClassLoader.findClass(URLClassLoader.java:186
> > )
> > [torque-data-model] [ERROR] at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:299)
> > [torque-data-model] [ERROR] at
> > java.lang.ClassLoader.loadClass(ClassLoader.java:255)
> > [torque-data-model] [ERROR] at
> > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
> > 315)
> > [torque-data-model] [ERROR] at
> > org.apache.torque.engine.database.model.Database.setName(
> > Database.java:136)
> > [torque-data-model] [ERROR] at
> > org.apache.torque.engine.database.model.Database.loadFrom
> > XML(Database.java:109)
> > [torque-data-model] [ERROR] at
> > org.apache.torque.engine.database.model.AppData.addDataba
> > se(AppData.java:281)
> > [torque-data-model] [ERROR] at
> > org.apache.torque.engine.database.transform.XmlToAppData.
> > startElement(XmlToAppData.java:229)
> > [torque-data-model] [ERROR] at
> > org.apache.crimson.parser.Parser2.maybeElement(Parser2.ja
> > va:1490)
> > [torque-data-model] [ERROR] at
> > org.apache.crimson.parser.Parser2.parseInternal(Parser2.j
> > ava:500)
> > [torque-data-model] [ERROR] at
> > org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
> >
> > [torque-data-model] [ERROR] at
> > org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderIm
> > pl.java:442)
> > [torque-data-model] [ERROR] at
> > javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
> > [torque-data-model] [ERROR] at
> > org.apache.torque.engine.database.transform.XmlToAppData.
> > parseFile(XmlToAppData.java:167)
> > [torque-data-model] [ERROR] at
> > org.apache.torque.task.TorqueDataModelTask.initControlCon
> > text(TorqueDataModelTask.java:334)
> > [torque-data-model] [ERROR] at
> > org.apache.velocity.texen.ant.TexenTask.execute(TexenTask
> > .java:480)
> > [torque-data-model] [ERROR] at
> > org.apache.tools.ant.Task.perform(Task.java:317)
> > [torque-data-model] [ERROR] at
> > org.apache.tools.ant.Target.execute(Target.java:309)
> > [torque-data-model] [ERROR] at
org.apache.tools.ant.Target.perfo
> > rmTasks(Target.java:334)
> >
> > [torque-data-model] [ERROR] at
> > org.apache.tools.ant.Project.executeTarget(Project.java:1
> > 306)
> > [torque-data-model] [ERROR] at
> > org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
> > [torque-data-model] [ERROR] at
> > org.apache.tools.ant.Task.perform(Task.java:317)
> > [torque-data-model] [ERROR] at
> > org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.jav
> > a:208)
> > [torque-data-model] [ERROR] at
> > org.apache.commons.jelly.impl.TagScript.run(TagScript.jav
> > a:277)
> > [torque-data-model] [ERROR] at
> > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock
> > .java:134)
> > [torque-data-model] [ERROR] at
> > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport
> > .java:193)
> > [torque-data-model] [ERROR] at
> > org.apache.commons.jelly.tags.werkz.GoalTag$1.performActi
> > on(GoalTag.java:119)
> > [torque-data-model] [ERROR] at
> > com.werken.werkz.Goal.fire(Goal.java:632)
> > [torque-data-model] [ERROR] at
> > com.werken.werkz.Goal.attain(Goal.java:568)
> > [torque-data-model] [ERROR] at
> > org.apache.maven.app.Maven.runGoals(Maven.java:865)
> > [torque-data-model] [ERROR] at
> > org.apache.maven.app.Maven.attainGoals(Maven.java:783)
> > [torque-data-model] [ERROR] at
> > org.apache.maven.cli.App.doMain(App.java:483)
> > [torque-data-model] [ERROR] at
> > org.apache.maven.cli.App.main(App.java:1069)
> > [torque-data-model] [ERROR] ... 6 more
> >
> >
> >
> > What is stratum? Do I need it to use torque?
> > TIA.
> > Marc
> >
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> >
>
> --
> =====================================================================
> Jeffrey D. Brekke [EMAIL PROTECTED]
> Wisconsin, USA [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>