db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Lustig" <m...@marclustig.com>
Subject problem running maven-plugin: can't find stratum-lib
Date Tue, 10 Dec 2002 20:48:14 GMT
Dear Torque developers,

I have been trying for about a week now to get the Torque-plugin for Maven
running, without success. I already posted several messages to the user
lists but nobody seems to know about that problem. Maybe it comes as a
result of the latest builds.

This is what I did:

- installing Maven b7 release build (Maven runs okay)
- getting torque from cvs HEAD
- running plugin:deploy in jakarta-turbine-torque\src\maven-plugin\
- adjusting project.xml and project.properties according to the plugin-howto

Now the only torque-goal that I can run successfully is torque:om. The
om-classes are being created.
Goals like torque:main or torque:sql  result in the following error-message:

torque:main:
    [echo] +------------------------------------------+
    [echo] |                                          |
    [echo] | Generating SQL for YOUR Torque project!  |
    [echo] | Woo hoo!                                 |
    [echo] |                                          |
    [echo] +------------------------------------------+
    [torque-sql] Using contextProperties file:
D:\audiotex\project.properties
    [torque-sql] Using classpath
    [torque-sql] Generating to file
D:\audiotex\target\sql\report.audiotex.sql.generation
    [torque-sql] Resolver: used database.dtd from
org.apache.torque.engine.database.transform packag
e
    [torque-sql] Resolver: used database.dtd from
org.apache.torque.engine.database.transform packag
e
    [torque-sql] [ERROR] java.lang.reflect.InvocationTargetException:
java.lang.NoClassDefFoundError
: org/apache/stratum/lifecycle/Initializable
    [torque-sql] [ERROR]        at java.lang.ClassLoader.defineClass0(Native
Method)
    [torque-sql] [ERROR]        at
java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    [torque-sql] [ERROR]        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.jav
a:106)
    [torque-sql] [ERROR]        at
java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    [torque-sql] [ERROR]        at
java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    [torque-sql] [ERROR]        at
java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    [torque-sql] [ERROR]        at
java.security.AccessController.doPrivileged(Native Method)
    [torque-sql] [ERROR]        at
java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    [torque-sql] [ERROR]        at
java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    [torque-sql] [ERROR]        at
java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    [torque-sql] [ERROR]        at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    [torque-sql] [ERROR]        at
org.apache.torque.engine.database.model.Database.setName(Database
.java:136)
    [torque-sql] [ERROR]        at
org.apache.torque.engine.database.model.Database.loadFromXML(Data
base.java:109)
    [torque-sql] [ERROR]        at
org.apache.torque.engine.database.model.AppData.addDatabase(AppDa
ta.java:281)
    [torque-sql] [ERROR]        at
org.apache.torque.engine.database.transform.XmlToAppData.startEle
ment(XmlToAppData.java:229)
    [torque-sql] [ERROR]        at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Abstract
SAXParser.java:454)
    [torque-sql] [ERROR]        at
org.apache.xerces.impl.XMLNamespaceBinder.startElement(XMLNamespa
ceBinder.java:571)
    [torque-sql] [ERROR]        at
org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(XMLDTDVal
idator.java:756)
    [torque-sql] [ERROR]        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartEl
ement(XMLDocumentFragmentScannerImpl.java:752)
    [torque-sql] [ERROR]        at
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.s
canRootElementHook(XMLDocumentScannerImpl.java:942)
    [torque-sql] [ERROR]        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCon
tentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1520)
    [torque-sql] [ERROR]        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocumen
t(XMLDocumentFragmentScannerImpl.java:333)
    [torque-sql] [ERROR]        at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration
.java:524)
    [torque-sql] [ERROR]        at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration
.java:580)
    [torque-sql] [ERROR]        at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    [torque-sql] [ERROR]        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXPars
er.java:1169)
    [torque-sql] [ERROR]        at
javax.xml.parsers.SAXParser.parse(SAXParser.java:394)
    [torque-sql] [ERROR]        at
org.apache.torque.engine.database.transform.XmlToAppData.parseFil
e(XmlToAppData.java:167)
    [torque-sql] [ERROR]        at
org.apache.torque.task.TorqueDataModelTask.initControlContext(Tor
queDataModelTask.java:334)
    [torque-sql] [ERROR]        at
org.apache.torque.task.TorqueSQLTask.initControlContext(TorqueSQL
Task.java:220)
    [torque-sql] [ERROR]        at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:48
0)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Task.perform(Task.java:317)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Target.execute(Target.java:309)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:
143)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Task.perform(Task.java:317)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Target.execute(Target.java:309)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:
143)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Task.perform(Task.java:317)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Target.execute(Target.java:309)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Target.performTasks(Target.java:334)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:371)
    [torque-sql] [ERROR]        at
org.apache.tools.ant.Task.perform(Task.java:317)
    [torque-sql] [ERROR]        at
org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:220)
    [torque-sql] [ERROR]        at
org.apache.commons.jelly.impl.DynaTagScript.run(DynaTagScript.jav
a:141)
    [torque-sql] [ERROR]        at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:13
4)
    [torque-sql] [ERROR]        at
org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:19
0)
    [torque-sql] [ERROR]        at
org.apache.commons.jelly.tags.werkz.GoalTag$1.performAction(GoalT
ag.java:119)
    [torque-sql] [ERROR]        at
com.werken.werkz.Goal.attain(Goal.java:524)
    [torque-sql] [ERROR]        at
org.apache.maven.app.Maven.runGoals(Maven.java:943)
    [torque-sql] [ERROR]        at
org.apache.maven.app.Maven.attainGoals(Maven.java:844)
    [torque-sql] [ERROR]        at
org.apache.maven.app.App.doMain(App.java:379)
    [torque-sql] [ERROR]        at
org.apache.maven.app.App.main(App.java:892)
    [torque-sql] [ERROR]        at java.lang.reflect.Method.invoke(Native
Method)
    [torque-sql] [ERROR]        at
com.werken.forehead.Forehead.run(Forehead.java:543)
    [torque-sql] [ERROR]        at
com.werken.forehead.Forehead.main(Forehead.java:573)


I also tried it with the maven cvs HEAD edition.
And also I used torque 3.0 release build instead of cvs HEAD to deploy the
plugin.
In my repo/stratum/jars I have both files stratum-1.0-b3.jar and
stratum-1.0-b3-dev.jar.
In my project.xml I exchanged <version>1.0-b3</version> with
<version>1.0-b3-dev</version>, without any effect on the error message.

Also, I downgraded to jdk1.3.1 from 1.4.1 to make sure there is no conflict
with the xml-parser, without any effect.

I have attached my project as zip-archive, it also includes maven.log.
I hope you can give me at least a hint where else I could start looking.
Thank you.

Marc

Mime
View raw message