Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 95490 invoked from network); 20 Feb 2005 21:00:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Feb 2005 21:00:16 -0000 Received: (qmail 5131 invoked by uid 500); 20 Feb 2005 21:00:15 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 4737 invoked by uid 500); 20 Feb 2005 21:00:13 -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 4723 invoked by uid 99); 20 Feb 2005 21:00:13 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from cerberus.internection.com (HELO www.internection.com) (208.226.79.42) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 20 Feb 2005 13:00:09 -0800 Received: from [208.226.79.107] (thetransporter.internection.com [208.226.79.107]) by www.internection.com (8.12.10/8.12.10) with ESMTP id j1KL03EN000814 for ; Sun, 20 Feb 2005 16:00:03 -0500 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: References: Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Jonathan August Subject: Re: how do I define db driver path? Date: Sun, 20 Feb 2005 16:00:02 -0500 To: "Apache Torque Users List" X-Mailer: Apple Mail (2.619.2) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks Brandon and Paul. Your messages were really helpful. I was able to get it working with Paul's example. On Feb 19, 2005, at 3:52 PM, Brandon Mayes wrote: > Yeah you definitely need to define the mysql driver as a dependency in = =20 > your > project.xml file. I'm going to expand on the first reply you =20 > got...and go > into a bit more detail, but everything he said is correct. I actually = =20 > found > that the driver listed on the torque project page didn't work. I had =20= > to > change it and instead I used "com.mysql.jdbc.Driver" and it worked =20 > 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. =20= > On > Windows I think by default it goes to C:\documents and > settings\\.maven (notice the dot before maven since it's a =20= > 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 =20= > 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 =20 > $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-=20 > connector-java-3.1.6.jar > > Now here's my project.xml with only the jdbc driver listed as a =20 > 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 =20= > 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 =20= > add the > necessary classes to the torque-plugin classpath. > http://www.ibiblio.org/maven/mm-mysql/jars/ shows the various versions = =20 > for > download. > Hope this helps. > Paul > > -----Original Message----- > From: > torque-user-return-5814-paul.osborne=3Dmorley-=20 > computing.co.uk@db.apache.org > [mailto:torque-user-return-5814-paul.osborne=3Dmorley-=20 > 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 =20 > 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 =20 > McAfee=AE Security. =20 > http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3D3963 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org > For additional commands, e-mail: torque-user-help@db.apache.org > ---- Jon August Internection 1-866-345-HOST --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org