I have the same situation here... but still get the error when running goal
torque:whatever

...
    [torque-sql] [ERROR] Caused by: java.lang.NoClassDefFoundError:
org/apache/stratum/lifecycle/Initializable
...

Other maven goals that I tried work ok.
I have included my project.properties and projext.xml

Marc

-----Urspr�ngliche Nachricht-----
Von: Jeffrey D. Brekke [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. Dezember 2002 05:01
An: Turbine Maven Users List
Betreff: Re: AW: error running torque-plugin



I'm not quite sure what your issue is.  I can tell you that my projects
are working properly with the torque plugin and Maven HEAD.  I'll outline
where and what I needed to do:

* project directory is soos/ and in there I have project.xml and
project.properties.

* project.xml has all dependencies that the torque plugin needs per the
how-to.

* project.properties includes all the torqye plugin settings per the
how-to.

* The schema is in src/schema and Torque.properties is only needed for
runtime so is in src/webapp/WEB-INF/conf

* I'm in the soos/ directory when I run 'maven torque:main'

On Sun, 8 Dec 2002, Marc Lustig wrote:

> 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]>
>

--
=====================================================================
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]>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Marc Lustig (no) -->
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="C:\jakarta\maven-1.0-b7\maven-project.xsd">
	<!-- the version of maven's project object model -->
	<pomVersion>3</pomVersion>
	<!-- a unique name for this project -->
	<id>audiotex</id>
	<!-- a short but descriptive name for the project -->
	<name>Audiotex Web App</name>
	<!-- The version of the project under development, e.g.
       1.1, 1.2, 2.0-dev -->
	<currentVersion>0.1</currentVersion>
	<!-- details about the organization that 'owns' the project -->
	<organization>
		<name>Geoconnect GmbH</name>
		<url>http://www.geoconnect.de</url>
	</organization>
	<!-- the year the project started -->
	<inceptionYear>2002</inceptionYear>
	<!-- the top level of java packages that this project defines
       e.g. if your project contains the packages
       com.mycompany.accounts.reports, com.mycompany.accounts.reports
       and com.mycompany.accounts.utils, the package would be
       'com.mycompany.accounts' -->
	<package>de.geoconnect.audiotex</package>
	<!-- a short description of what the project does -->
	<shortDescription>Geophone Audiotex Web Application</shortDescription>
	<!-- the project home page -->
	<url>http://admin.geophone.de</url>
	<!-- the version control repository and http url for online access
       the connection element has the form:
       scm:<system>:<system specific connection string> -->
	<!-- any mailing lists for the project -->
	<mailingLists/>
	<!-- who the developers are for the project -->
	<developers>
		<developer>
			<name>Marc Lustig</name>
			<id>ml</id>
			<email>[EMAIL PROTECTED]</email>
			<roles/>
			<url/>
		</developer>
	</developers>
	<!-- jar files the project is dependent on -->
	<dependencies>
		<dependency>
			<id>ant</id>
			<version>1.5</version>
		</dependency>
		<dependency>
			<id>commons-beanutils</id>
			<version>1.4.1</version>
		</dependency>
		<dependency>
			<id>commons-collections</id>
			<version>2.0</version>
			<url>http://jakarta.apache.org/commons/collections.html</url>
		</dependency>
		<dependency>
			<id>commons-configuration</id>
			<version>1.0-dev</version>
			<url>http://jakarta.apache.org/commons/</url>
		</dependency>
		<dependency>
			<id>commons-dbcp</id>
			<version>1.0-dev-20020806</version>
			<url>http://jakarta.apache.org/commons/</url>
		</dependency>
		<dependency>
			<id>commons-lang</id>
			<version>1.0</version>
			<url>http://jakarta.apache.org/commons/</url>
		</dependency>
		<dependency>
			<id>commons-logging</id>
			<version>1.0.2</version>
			<url>http://jakarta.apache.org/commons/</url>
		</dependency>
		<dependency>
			<id>commons-pool</id>
			<version>1.0</version>
			<url>http://jakarta.apache.org/commons/pool/</url>
		</dependency>
		<dependency>
			<id>jcs</id>
			<version>1.0-dev</version>
			<url>http://jakarta.apache.org/turbine/jcs/</url>
		</dependency>
		<dependency>
			<id>jdbc</id>
			<version>2.0</version>
			<url>http://java.sun.com/products/jdbc/download.html#spec</url>
		</dependency>
		<dependency>
			<id>jndi</id>
			<version>1.2.1</version>
			<url>http://java.sun.com/products/jndi/</url>
		</dependency>
		<dependency>
			<id>log4j</id>
			<version>1.2.6</version>
			<url>http://jakarta.apache.org/log4j/</url>
		</dependency>
		<dependency>
			<id>stratum</id>
			<version>1.0-b3</version>
			<url>http://jakarta.apache.org/turbine/stratum/</url>
		</dependency>
		<dependency>
			<id>tomcat-naming</id>
			<version>1.0</version>
			<url>http://jakarta.apache.org/tomcat/</url>
		</dependency>
		<dependency>
			<id>velocity</id>
			<version>1.3</version>
			<url>http://jakarta.apache.org/velocity/</url>
		</dependency>
		<dependency>
			<id>village</id>
			<version>1.5.3</version>
			<url>http://share.whichever.com/index.php?SCREEN=village</url>
		</dependency>
		<dependency>
			<id>xerces</id>
			<version>2.0.2</version>
			<jar>xercesImpl-2.0.2.jar</jar>
			<url>http://xml.apache.org/xerces2-j/</url>
		</dependency>
		<dependency>
			<id>xml-apis</id>
			<version>2.0.2</version>
			<jar>xmlParserAPIs-2.0.2.jar</jar>
			<url>http://xml.apache.org/xerces2-j/</url>
		</dependency>
	</dependencies>
	<!-- build information for the project. We have no source, tests,
       resources etc
    -->
	<build/>
</project>

Attachment: project.properties
Description: Binary data

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to