Hi they, In my application, I use Torque's Maven-Plugin to do those database work. So far it works well. But when I try to dump data from database into xml files by using the goal torque:datadump, I got the following error: [torque-data-dump] Torque - TorqueDataDump starting [torque-data-dump] Your DB settings are: [torque-data-dump] driver: org.gjt.mm.mysql.Driver [torque-data-dump] URL: jdbc:mysql://localhost:3306/test [torque-data-dump] user: test cannot load driver: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:299) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.torque.task.TorqueDataDumpTask.initControlContext(TorqueDataDumpTa sk.java:185) 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:232) 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:7 9) 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.plugin.PluginManager.attainGoals(PluginManager.java:610) at org.apache.maven.MavenSession.attainGoals(MavenSession.java:266) at org.apache.maven.cli.App.doMain(App.java:485) at org.apache.maven.cli.App.main(App.java:1214) 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) I am sure the JDBC driver for MySQL database is in the classpath, because I can execute the gaol torque:insert-sql and torque:create-db successfully. I am so confused! Any suggestion? Thanks a lot Sean
--------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages!