Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 50097 invoked from network); 19 Dec 2003 23:50:33 -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:50:33 -0000 Received: (qmail 29313 invoked by uid 500); 19 Dec 2003 23:50:16 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 29168 invoked by uid 500); 19 Dec 2003 23:50:15 -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 29154 invoked from network); 19 Dec 2003 23:50:15 -0000 Received: from unknown (HELO sea-exchange-1.xypoint) (216.190.251.69) by daedalus.apache.org with SMTP; 19 Dec 2003 23:50:15 -0000 Received: by sea-exchange-1.xypoint.com with Internet Mail Service (5.5.2656.59) id ; Fri, 19 Dec 2003 15:50:18 -0800 Message-ID: <6FAB81492335DB46BFE0139ADDE3B3F201F6DF8A@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:50:18 -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 I don't understand "try to see if Torque can locate that older driver". How do I do that? -----Original Message----- From: Sonu Vijay [mailto:sonupv@yahoo.com] Sent: Friday, December 19, 2003 3:37 PM To: Apache Torque Users List Subject: RE: java.lang.InstantiationException: Unknown JDBC driver: com.my sql. jdb No, I"m not saying use the older jdbc driver cause that's obsolete now. I was saying that just try to see if Torque can locate that older driver which should be located in the same jar that you have. If none could be located then check your classpath once again. The older driver was org.gjt.mm.mysql.Driver. --- Truyen Vu wrote: > 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="**/commons-logging-1.0.3.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 > > > === 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