Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 44638 invoked from network); 19 Dec 2003 23:25:36 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Dec 2003 23:25:36 -0000 Received: (qmail 8055 invoked by uid 500); 19 Dec 2003 23:25:20 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 7908 invoked by uid 500); 19 Dec 2003 23:25:19 -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 7895 invoked from network); 19 Dec 2003 23:25:19 -0000 Received: from unknown (HELO sea-exchange-1.xypoint) (216.190.251.69) by daedalus.apache.org with SMTP; 19 Dec 2003 23:25:19 -0000 Received: by sea-exchange-1.xypoint.com with Internet Mail Service (5.5.2656.59) id ; Fri, 19 Dec 2003 15:25:22 -0800 Message-ID: <6FAB81492335DB46BFE0139ADDE3B3F201F6DF88@sea-exchange-1.xypoint.com> From: Truyen Vu To: 'Apache Torque Users List' Subject: RE: java.lang.InstantiationException: Unknown JDBC driver: com.my sql. jdb Date: Fri, 19 Dec 2003 15:25:21 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N No, I'm running Ant from the DOS window. -----Original Message----- From: Sonu Vijay [mailto:sonupv@yahoo.com] Sent: Friday, December 19, 2003 3:25 PM To: Apache Torque Users List Subject: Re: java.lang.InstantiationException: Unknown JDBC driver: com.mysql. jdb Are u running the Ant from within an IDE ? If yes then try adding the Driver jar to the classpath of the IDE or the project in the IDE. --- Truyen Vu wrote: > I'm new to Torque and trying out the bookstore > tutorial. I got the bookstore > project to compile, build the database and create > the tables, but failed to > run the Bookstore app. Below is the error. I also > include the > build-torque.xml for reference. It appears that Ant > is having problem > finding com.mysql.jdb.Driver from > mysql-connector-java-3.0.9-stable-bin.jar > which I'd already defined in the classpath. > > thank you very much for your help. > > ========== build-torque.xml ============== > > > name="**/mysql-connector-java-3.0.9-stable-bin.jar"/> > > > name="**/commons-configuration-1.0-dev-3.20030607.194155.jar"/> > > name="**/village-2.0-dev-20030825.jar"/> > > > > > > > > message="+------------------------------------------+"/> > > > > message="+------------------------------------------+"/> > classpath="C:\torque-gen-3.1\bin\classes" > fork="true"> > > > > > > =============== error > =============================== > > C:\torque-gen-3.1>ant -f build-torque.xml run > Buildfile: build-torque.xml > > run: > [echo] > +------------------------------------------+ > [echo] | > | > [echo] | Running Bookstore | > [echo] | > | > [echo] > +------------------------------------------+ > [java] Dec 19, 2003 11:49:38 AM > org.apache.torque.TorqueInstance > initAdapte > rs > [java] WARNING: Databases defined but no > adapter configurations found! > [java] Dec 19, 2003 11:49:38 AM > org.apache.torque.oid.IDBroker > [java] WARNING: IDBroker is being used with db > 'bookstore', which does > not > support transactions. IDBroker attempts to use > transactions to limit the > possibi > lity of duplicate key generation. Without > transactions, duplicate key > generatio > n is possible if multiple JVMs are used or other > means are used to write to > the > database. > [java] Dec 19, 2003 11:49:38 AM > org.apache.torque.util.BasePeer > getMapBuild > er > [java] SEVERE: BasePeer.MapBuilder failed > trying to instantiate: > com.kazmie > r.om.map.PublisherMapBuilder > [java] java.lang.InstantiationException: > Unknown JDBC driver: > com.mysql.jdb > c.Driver: Check your configuration file > [java] at > org.apache.torque.adapter.DBFactory.create(DBFactory.java:161 > ) > [java] at > org.apache.torque.TorqueInstance.initDatabaseMap(TorqueInstan > ce.java:647) > [java] at > org.apache.torque.TorqueInstance.getDatabaseMap(TorqueInstanc > e.java:616) > [java] at > org.apache.torque.Torque.getDatabaseMap(Torque.java:269) > [java] at > com.kazmier.om.map.PublisherMapBuilder.doBuild(PublisherMapBu > ilder.java:60) > [java] at > org.apache.torque.util.BasePeer.getMapBuilder(BasePeer.java:2 > 125) > [java] at > com.kazmier.om.BasePublisherPeer.(BasePublisherPeer.j > ava:74) > [java] at > com.kazmier.om.BasePublisher.(BasePublisher.java:36) > [java] at > com.kazmier.om.Bookstore.main(Bookstore.java:25) > [java] rethrown as > org.apache.torque.TorqueException: Unknown JDBC > driver: > com.mysql.jdbc.Driver: Check your configuration file > [java] at > org.apache.torque.TorqueInstance.initDatabaseMap(TorqueInstan > ce.java:657) > [java] at > org.apache.torque.TorqueInstance.getDatabaseMap(TorqueInstanc > e.java:616) > [java] at > org.apache.torque.Torque.getDatabaseMap(Torque.java:269) > [java] at > com.kazmier.om.map.PublisherMapBuilder.doBuild(PublisherMapBu > ilder.java:60) > [java] at > org.apache.torque.util.BasePeer.getMapBuilder(BasePeer.java:2 > 125) > [java] at > com.kazmier.om.BasePublisherPeer.(BasePublisherPeer.j > ava:74) > [java] at > com.kazmier.om.BasePublisher.(BasePublisher.java:36) > [java] at > com.kazmier.om.Bookstore.main(Bookstore.java:25) > [java] Caused by: > java.lang.InstantiationException: Unknown JDBC > driver: co > m.mysql.jdbc.Driver: Check your configuration file > [java] at > org.apache.torque.adapter.DBFactory.create(DBFactory.java:161 > ) > [java] at > org.apache.torque.TorqueInstance.initDatabaseMap(TorqueInstan > ce.java:647) > [java] ... 7 more > [java] Dec 19, 2003 11:49:39 AM > org.apache.torque.oid.IDBroker > [java] WARNING: IDBroker is being used with db > 'bookstore', which does > not > support transactions. IDBroker attempts to use > transactions to limit the > possibi > lity of duplicate key generation. Without > transactions, duplicate key > generatio > n is possible if multiple JVMs are used or other > means are used to write to > the > database. > [java] Dec 19, 2003 11:49:39 AM > org.apache.torque.util.BasePeer > getMapBuild > er > [java] SEVERE: BasePeer.MapBuilder failed > trying to instantiate: > com.kazmie > r.om.map.PublisherMapBuilder > [java] java.lang.InstantiationException: > Unknown JDBC driver: > com.mysql.jdb > c.Driver: Check your configuration file > [java] at > org.apache.torque.adapter.DBFactory.create(DBFactory.java:161 > ) > [java] at > org.apache.torque.TorqueInstance.initDatabaseMap(TorqueInstan > ce.java:647) > [java] at > org.apache.torque.TorqueInstance.getDatabaseMap(TorqueInstanc > e.java:616) > [java] at > org.apache.torque.Torque.getDatabaseMap(Torque.java:269) > [java] at > com.kazmier.om.map.PublisherMapBuilder.doBuild(PublisherMapBu > ilder.java:60) > === message truncated === __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ --------------------------------------------------------------------- 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