Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 96388 invoked from network); 19 Feb 2005 20:53:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 19 Feb 2005 20:53:05 -0000 Received: (qmail 97458 invoked by uid 500); 19 Feb 2005 20:53:04 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 97441 invoked by uid 500); 19 Feb 2005 20:53:04 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 97427 invoked by uid 99); 19 Feb 2005 20:53:03 -0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of eff4eye@hotmail.com designates 64.4.35.34 as permitted sender) Received: from bay12-f34.bay12.hotmail.com (HELO hotmail.com) (64.4.35.34) by apache.org (qpsmtpd/0.28) with ESMTP; Sat, 19 Feb 2005 12:53:02 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 19 Feb 2005 12:53:00 -0800 Message-ID: Received: from 24.88.244.143 by by12fd.bay12.hotmail.msn.com with HTTP; Sat, 19 Feb 2005 20:52:24 GMT X-Originating-IP: [24.88.244.143] X-Originating-Email: [eff4eye@hotmail.com] X-Sender: eff4eye@hotmail.com From: "Brandon Mayes" To: torque-user@db.apache.org Bcc: Subject: Re: how do I define db driver path? Date: Sat, 19 Feb 2005 14:52:24 -0600 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 19 Feb 2005 20:53:00.0475 (UTC) FILETIME=[FF6E58B0:01C516C4] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Yeah you definitely need to define the mysql driver as a dependency in your project.xml file. I'm going to expand on the first reply you got...and go into a bit more detail, but everything he said is correct. I actually found that the driver listed on the torque project page didn't work. I had to change it and instead I used "com.mysql.jdbc.Driver" and it worked after that. If you don't include the URL in your dependency, or it fails to download it, you're going to want to find your maven home directory. On Windows I think by default it goes to C:\documents and settings\\.maven (notice the dot before maven since it's a hidden directory) I'm not sure where it goes on Linux...I haven't tried on my Slackware system yet (maybe in /home//.maven??) . In any case, once you find $mavenHome there are two directories in there, cache and repository. You need to make sure that all dependencies listed in your project.xml file have a corresponing directory in $mavenHome/repository and so my path looks like this for my jdbc driver: C:\documents and settings\bmayes\.maven\repository\mysql-connector-java\jars\mysql-connector-java-3.1.6.jar Now here's my project.xml with only the jdbc driver listed as a dependency: mysql-connector-java mysql-connector-java 3.1.6 Hope everything works. -Brandon ----- Original Message ----- From: "Paul Osborne" To: "'Apache Torque Users List'" Sent: Saturday, February 19, 2005 3:17 PM Subject: RE: how do I define db driver path? Hi Jon Have you defined the mysql driver in your ./project.xml? If not, you need an entry that looks something like: ... mm-mysql mm-mysql 2.0.13-bin http://www.ibiblio.org/maven/mm-mysql/ true ... ... 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: torque-user-return-5814-paul.osborne=morley-computing.co.uk@db.apache.org [mailto:torque-user-return-5814-paul.osborne=morley-computing.co.uk@db.apach e.org] On Behalf Of Jonathan August Sent: 19 February 2005 08:07 To: torque-user@db.apache.org 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: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee� Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org