Hi Jon
Have you defined the mysql driver in your ./project.xml? If not, you need an
entry that looks something like:
        ...
        <dependencies>
                <dependency>
                        <groupId>mm-mysql</groupId>
                        <artifactId>mm-mysql</artifactId>
                        <version>2.0.13-bin</version>
                        <url>http://www.ibiblio.org/maven/mm-mysql/</url>
                        <!-- include in WAR file (optional) -->
                        <properties>
                                <war.bundle>true</war.bundle>
                        </properties>
                </dependency>
        ...
        </dependencies>
        ...
This will get Maven to download the module into your repository and add the
necessary classes to the torque-plugin classpath.
http://www.ibiblio.org/maven/mm-mysql/jars/ shows the various versions for
download.
Hope this helps.
Paul 

-----Original Message-----
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
e.org] On Behalf Of Jonathan August
Sent: 19 February 2005 08:07
To: [email protected]
Subject: how do I define db driver path?


I'm having a real hard time figuring out how to get torque working.  
I'm following the tutorial and I get this error when I run:

maven torque:create-db

BUILD FAILED
File...... 
/Users/jon/.maven/cache/maven-torque-plugin-3.1.1/plugin.jelly
Element... sql
Line...... 394
Column.... 44
Class Not Found: JDBC driver org.gjt.mm.mysql.Driver could not be loaded

How do I tell maven where my driver is?  It's in my classpath...

        -Jon
        


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


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

Reply via email to