Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

/proc/kallsyms format, sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas

Links

XODOX
Impressum

#1: Maven / Torque Generator Classpath

Posted on 2004-11-26 18:08:32 by G

Hello,

I try to make an XML dump of a oracle database schema with the Torque
Generator jakarta api.

But, I cannot find how use Torque Generator without Maven and I connot find
how to put the "classes12.jar" oracle JDBC Driver in the Maven classpath.

So, I get the following exception :

C:\JavaLib\jakarta\torque-gen\torque-gen-3.1.1\projectTest>m aven
torque:datadump
__ __
| \/ |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \ ~ intelligent projects ~
|_| |_\__,_|\_/\___|_||_| v. 1.0.1

build:start:

torque:init:

torque:datadump:
[torque-data-dump] Using classpath
[torque-data-dump] Generating to file
C:\JavaLib\jakarta\torque-gen\torque-gen-3.1.1\projectTest\t arget\report.bug.datadump.generation
[torque-data-dump] Torque - TorqueDataDump starting
[torque-data-dump] Your DB settings are:
[torque-data-dump] driver: oracle.jdbc.driver.OracleDriver
[torque-data-dump] URL: jdbc:oracle:thin:@192.168.0.101:1521:ORCL
[torque-data-dump] user: BUG
cannot load driver:
java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
at
org.apache.tools.ant.AntClassLoader.findClassInComponents(An tClassLoader.java:1075)
at
org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader .java:1036)
at
org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader .java:925)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302 )
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at
org.apache.torque.task.TorqueDataDumpTask.initControlContext (TorqueDataDumpTask.java:197)
at
org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.ja va:480)
at org.apache.tools.ant.Task.perform(Task.java:341)
at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:1 85)
at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:2 79)
at
org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.ja va:135)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag(Ma venGoalTag.java:79)
at
org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalActi on.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(PluginMana ger.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(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.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)
BUILD SUCCESSFUL
Total time: 6 seconds
Finished at: Mon Nov 22 12:20:01 CET 2004

Could someone help ?

Thank you.

Report this message

#2: Re: Maven / Torque Generator Classpath

Posted on 2004-11-26 18:12:15 by Davide Bianchi

On 2004-11-26, G <news@gweb.be> wrote:
> I try to make an XML dump of a oracle database schema with the Torque
> Generator jakarta api.

You'll have more chance of an answer on a java related newsgroup,
or better, check the mailing list for Maven.

Davide

--
The United States of America: Screwing with the English Language for over
200 years. -- Mike Sphar

Report this message